home *** CD-ROM | disk | FTP | other *** search
/ Micrografx ABC Graphics Suite / Micrografx ABC Graphics Suite - Disc 2.iso / abc.z / ABCAUTO.CPP < prev    next >
C/C++ Source or Header  |  1995-09-15  |  90KB  |  4,515 lines

  1. // Machine generated IDispatch driver class(es) created with ClassWizard.
  2.  
  3. #include "stdafx.h"
  4. #include "abcauto.h"
  5.  
  6.  
  7. /////////////////////////////////////////////////////////////////////////////
  8. // Application properties
  9.  
  10. LPDISPATCH Application::GetActiveChart()
  11. {
  12.     LPDISPATCH result;
  13.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  14.     return result;
  15. }
  16.  
  17. void Application::SetActiveChart(LPDISPATCH propVal)
  18. {
  19.     SetProperty(0x1, VT_DISPATCH, propVal);
  20. }
  21.  
  22. LPDISPATCH Application::GetApplication()
  23. {
  24.     LPDISPATCH result;
  25.     GetProperty(0x2, VT_DISPATCH, (void*)&result);
  26.     return result;
  27. }
  28.  
  29. void Application::SetApplication(LPDISPATCH propVal)
  30. {
  31.     SetProperty(0x2, VT_DISPATCH, propVal);
  32. }
  33.  
  34. long Application::GetBottom()
  35. {
  36.     long result;
  37.     GetProperty(0x3, VT_I4, (void*)&result);
  38.     return result;
  39. }
  40.  
  41. void Application::SetBottom(long propVal)
  42. {
  43.     SetProperty(0x3, VT_I4, propVal);
  44. }
  45.  
  46. CString Application::GetCaption()
  47. {
  48.     CString result;
  49.     GetProperty(0x4, VT_BSTR, (void*)&result);
  50.     return result;
  51. }
  52.  
  53. void Application::SetCaption(const char* propVal)
  54. {
  55.     SetProperty(0x4, VT_BSTR, propVal);
  56. }
  57.  
  58. LPDISPATCH Application::GetCharts()
  59. {
  60.     LPDISPATCH result;
  61.     GetProperty(0x5, VT_DISPATCH, (void*)&result);
  62.     return result;
  63. }
  64.  
  65. void Application::SetCharts(LPDISPATCH propVal)
  66. {
  67.     SetProperty(0x5, VT_DISPATCH, propVal);
  68. }
  69.  
  70. CString Application::GetDefaultFilePath()
  71. {
  72.     CString result;
  73.     GetProperty(0x6, VT_BSTR, (void*)&result);
  74.     return result;
  75. }
  76.  
  77. void Application::SetDefaultFilePath(const char* propVal)
  78. {
  79.     SetProperty(0x6, VT_BSTR, propVal);
  80. }
  81.  
  82. BOOL Application::GetFieldViewerVisible()
  83. {
  84.     BOOL result;
  85.     GetProperty(0x7, VT_BOOL, (void*)&result);
  86.     return result;
  87. }
  88.  
  89. void Application::SetFieldViewerVisible(BOOL propVal)
  90. {
  91.     SetProperty(0x7, VT_BOOL, propVal);
  92. }
  93.  
  94. long Application::GetFieldViewerWindowHandle()
  95. {
  96.     long result;
  97.     GetProperty(0x8, VT_I4, (void*)&result);
  98.     return result;
  99. }
  100.  
  101. void Application::SetFieldViewerWindowHandle(long propVal)
  102. {
  103.     SetProperty(0x8, VT_I4, propVal);
  104. }
  105.  
  106. CString Application::GetFullName()
  107. {
  108.     CString result;
  109.     GetProperty(0x9, VT_BSTR, (void*)&result);
  110.     return result;
  111. }
  112.  
  113. void Application::SetFullName(const char* propVal)
  114. {
  115.     SetProperty(0x9, VT_BSTR, propVal);
  116. }
  117.  
  118. long Application::GetHeight()
  119. {
  120.     long result;
  121.     GetProperty(0xa, VT_I4, (void*)&result);
  122.     return result;
  123. }
  124.  
  125. void Application::SetHeight(long propVal)
  126. {
  127.     SetProperty(0xa, VT_I4, propVal);
  128. }
  129.  
  130. BOOL Application::GetHourglass()
  131. {
  132.     BOOL result;
  133.     GetProperty(0xb, VT_BOOL, (void*)&result);
  134.     return result;
  135. }
  136.  
  137. void Application::SetHourglass(BOOL propVal)
  138. {
  139.     SetProperty(0xb, VT_BOOL, propVal);
  140. }
  141.  
  142. BOOL Application::GetIndexVisible()
  143. {
  144.     BOOL result;
  145.     GetProperty(0xc, VT_BOOL, (void*)&result);
  146.     return result;
  147. }
  148.  
  149. void Application::SetIndexVisible(BOOL propVal)
  150. {
  151.     SetProperty(0xc, VT_BOOL, propVal);
  152. }
  153.  
  154. long Application::GetIndexWindowHandle()
  155. {
  156.     long result;
  157.     GetProperty(0xd, VT_I4, (void*)&result);
  158.     return result;
  159. }
  160.  
  161. void Application::SetIndexWindowHandle(long propVal)
  162. {
  163.     SetProperty(0xd, VT_I4, propVal);
  164. }
  165.  
  166. long Application::GetLeft()
  167. {
  168.     long result;
  169.     GetProperty(0xe, VT_I4, (void*)&result);
  170.     return result;
  171. }
  172.  
  173. void Application::SetLeft(long propVal)
  174. {
  175.     SetProperty(0xe, VT_I4, propVal);
  176. }
  177.  
  178. CString Application::GetName()
  179. {
  180.     CString result;
  181.     GetProperty(0xf, VT_BSTR, (void*)&result);
  182.     return result;
  183. }
  184.  
  185. void Application::SetName(const char* propVal)
  186. {
  187.     SetProperty(0xf, VT_BSTR, propVal);
  188. }
  189.  
  190. BOOL Application::GetNoteViewerVisible()
  191. {
  192.     BOOL result;
  193.     GetProperty(0x10, VT_BOOL, (void*)&result);
  194.     return result;
  195. }
  196.  
  197. void Application::SetNoteViewerVisible(BOOL propVal)
  198. {
  199.     SetProperty(0x10, VT_BOOL, propVal);
  200. }
  201.  
  202. long Application::GetNoteViewerWindowHandle()
  203. {
  204.     long result;
  205.     GetProperty(0x11, VT_I4, (void*)&result);
  206.     return result;
  207. }
  208.  
  209. void Application::SetNoteViewerWindowHandle(long propVal)
  210. {
  211.     SetProperty(0x11, VT_I4, propVal);
  212. }
  213.  
  214. CString Application::GetOperatingSystem()
  215. {
  216.     CString result;
  217.     GetProperty(0x12, VT_BSTR, (void*)&result);
  218.     return result;
  219. }
  220.  
  221. void Application::SetOperatingSystem(const char* propVal)
  222. {
  223.     SetProperty(0x12, VT_BSTR, propVal);
  224. }
  225.  
  226. LPDISPATCH Application::GetParent()
  227. {
  228.     LPDISPATCH result;
  229.     GetProperty(0x13, VT_DISPATCH, (void*)&result);
  230.     return result;
  231. }
  232.  
  233. void Application::SetParent(LPDISPATCH propVal)
  234. {
  235.     SetProperty(0x13, VT_DISPATCH, propVal);
  236. }
  237.  
  238. CString Application::GetPath()
  239. {
  240.     CString result;
  241.     GetProperty(0x14, VT_BSTR, (void*)&result);
  242.     return result;
  243. }
  244.  
  245. void Application::SetPath(const char* propVal)
  246. {
  247.     SetProperty(0x14, VT_BSTR, propVal);
  248. }
  249.  
  250. short Application::GetPercentGaugeValue()
  251. {
  252.     short result;
  253.     GetProperty(0x15, VT_I2, (void*)&result);
  254.     return result;
  255. }
  256.  
  257. void Application::SetPercentGaugeValue(short propVal)
  258. {
  259.     SetProperty(0x15, VT_I2, propVal);
  260. }
  261.  
  262. LPDISPATCH Application::GetPreferences()
  263. {
  264.     LPDISPATCH result;
  265.     GetProperty(0x16, VT_DISPATCH, (void*)&result);
  266.     return result;
  267. }
  268.  
  269. void Application::SetPreferences(LPDISPATCH propVal)
  270. {
  271.     SetProperty(0x16, VT_DISPATCH, propVal);
  272. }
  273.  
  274. CString Application::GetPrinter()
  275. {
  276.     CString result;
  277.     GetProperty(0x17, VT_BSTR, (void*)&result);
  278.     return result;
  279. }
  280.  
  281. void Application::SetPrinter(const char* propVal)
  282. {
  283.     SetProperty(0x17, VT_BSTR, propVal);
  284. }
  285.  
  286. long Application::GetRight()
  287. {
  288.     long result;
  289.     GetProperty(0x18, VT_I4, (void*)&result);
  290.     return result;
  291. }
  292.  
  293. void Application::SetRight(long propVal)
  294. {
  295.     SetProperty(0x18, VT_I4, propVal);
  296. }
  297.  
  298. BOOL Application::GetShapePaletteVisible()
  299. {
  300.     BOOL result;
  301.     GetProperty(0x19, VT_BOOL, (void*)&result);
  302.     return result;
  303. }
  304.  
  305. void Application::SetShapePaletteVisible(BOOL propVal)
  306. {
  307.     SetProperty(0x19, VT_BOOL, propVal);
  308. }
  309.  
  310. long Application::GetShapePaletteWindowHandle()
  311. {
  312.     long result;
  313.     GetProperty(0x1a, VT_I4, (void*)&result);
  314.     return result;
  315. }
  316.  
  317. void Application::SetShapePaletteWindowHandle(long propVal)
  318. {
  319.     SetProperty(0x1a, VT_I4, propVal);
  320. }
  321.  
  322. CString Application::GetStatusBar()
  323. {
  324.     CString result;
  325.     GetProperty(0x1b, VT_BSTR, (void*)&result);
  326.     return result;
  327. }
  328.  
  329. void Application::SetStatusBar(const char* propVal)
  330. {
  331.     SetProperty(0x1b, VT_BSTR, propVal);
  332. }
  333.  
  334. long Application::GetTop()
  335. {
  336.     long result;
  337.     GetProperty(0x1c, VT_I4, (void*)&result);
  338.     return result;
  339. }
  340.  
  341. void Application::SetTop(long propVal)
  342. {
  343.     SetProperty(0x1c, VT_I4, propVal);
  344. }
  345.  
  346. BOOL Application::GetUndoAvailable()
  347. {
  348.     BOOL result;
  349.     GetProperty(0x1d, VT_BOOL, (void*)&result);
  350.     return result;
  351. }
  352.  
  353. void Application::SetUndoAvailable(BOOL propVal)
  354. {
  355.     SetProperty(0x1d, VT_BOOL, propVal);
  356. }
  357.  
  358. CString Application::GetVersion()
  359. {
  360.     CString result;
  361.     GetProperty(0x1e, VT_BSTR, (void*)&result);
  362.     return result;
  363. }
  364.  
  365. void Application::SetVersion(const char* propVal)
  366. {
  367.     SetProperty(0x1e, VT_BSTR, propVal);
  368. }
  369.  
  370. BOOL Application::GetVisible()
  371. {
  372.     BOOL result;
  373.     GetProperty(0x1f, VT_BOOL, (void*)&result);
  374.     return result;
  375. }
  376.  
  377. void Application::SetVisible(BOOL propVal)
  378. {
  379.     SetProperty(0x1f, VT_BOOL, propVal);
  380. }
  381.  
  382. long Application::GetWidth()
  383. {
  384.     long result;
  385.     GetProperty(0x20, VT_I4, (void*)&result);
  386.     return result;
  387. }
  388.  
  389. void Application::SetWidth(long propVal)
  390. {
  391.     SetProperty(0x20, VT_I4, propVal);
  392. }
  393.  
  394. long Application::GetWindowHandle()
  395. {
  396.     long result;
  397.     GetProperty(0x21, VT_I4, (void*)&result);
  398.     return result;
  399. }
  400.  
  401. void Application::SetWindowHandle(long propVal)
  402. {
  403.     SetProperty(0x21, VT_I4, propVal);
  404. }
  405.  
  406. long Application::GetWhite()
  407. {
  408.     long result;
  409.     GetProperty(0x22, VT_I4, (void*)&result);
  410.     return result;
  411. }
  412.  
  413. void Application::SetWhite(long propVal)
  414. {
  415.     SetProperty(0x22, VT_I4, propVal);
  416. }
  417.  
  418. long Application::GetBlack()
  419. {
  420.     long result;
  421.     GetProperty(0x23, VT_I4, (void*)&result);
  422.     return result;
  423. }
  424.  
  425. void Application::SetBlack(long propVal)
  426. {
  427.     SetProperty(0x23, VT_I4, propVal);
  428. }
  429.  
  430. long Application::GetRed()
  431. {
  432.     long result;
  433.     GetProperty(0x24, VT_I4, (void*)&result);
  434.     return result;
  435. }
  436.  
  437. void Application::SetRed(long propVal)
  438. {
  439.     SetProperty(0x24, VT_I4, propVal);
  440. }
  441.  
  442. long Application::GetGreen()
  443. {
  444.     long result;
  445.     GetProperty(0x25, VT_I4, (void*)&result);
  446.     return result;
  447. }
  448.  
  449. void Application::SetGreen(long propVal)
  450. {
  451.     SetProperty(0x25, VT_I4, propVal);
  452. }
  453.  
  454. long Application::GetBlue()
  455. {
  456.     long result;
  457.     GetProperty(0x26, VT_I4, (void*)&result);
  458.     return result;
  459. }
  460.  
  461. void Application::SetBlue(long propVal)
  462. {
  463.     SetProperty(0x26, VT_I4, propVal);
  464. }
  465.  
  466. long Application::GetYellow()
  467. {
  468.     long result;
  469.     GetProperty(0x27, VT_I4, (void*)&result);
  470.     return result;
  471. }
  472.  
  473. void Application::SetYellow(long propVal)
  474. {
  475.     SetProperty(0x27, VT_I4, propVal);
  476. }
  477.  
  478. long Application::GetMagenta()
  479. {
  480.     long result;
  481.     GetProperty(0x28, VT_I4, (void*)&result);
  482.     return result;
  483. }
  484.  
  485. void Application::SetMagenta(long propVal)
  486. {
  487.     SetProperty(0x28, VT_I4, propVal);
  488. }
  489.  
  490. long Application::GetCyan()
  491. {
  492.     long result;
  493.     GetProperty(0x29, VT_I4, (void*)&result);
  494.     return result;
  495. }
  496.  
  497. void Application::SetCyan(long propVal)
  498. {
  499.     SetProperty(0x29, VT_I4, propVal);
  500. }
  501.  
  502. long Application::GetGray()
  503. {
  504.     long result;
  505.     GetProperty(0x2a, VT_I4, (void*)&result);
  506.     return result;
  507. }
  508.  
  509. void Application::SetGray(long propVal)
  510. {
  511.     SetProperty(0x2a, VT_I4, propVal);
  512. }
  513.  
  514. long Application::GetDk_red()
  515. {
  516.     long result;
  517.     GetProperty(0x2b, VT_I4, (void*)&result);
  518.     return result;
  519. }
  520.  
  521. void Application::SetDk_red(long propVal)
  522. {
  523.     SetProperty(0x2b, VT_I4, propVal);
  524. }
  525.  
  526. long Application::GetDk_green()
  527. {
  528.     long result;
  529.     GetProperty(0x2c, VT_I4, (void*)&result);
  530.     return result;
  531. }
  532.  
  533. void Application::SetDk_green(long propVal)
  534. {
  535.     SetProperty(0x2c, VT_I4, propVal);
  536. }
  537.  
  538. long Application::GetDk_blue()
  539. {
  540.     long result;
  541.     GetProperty(0x2d, VT_I4, (void*)&result);
  542.     return result;
  543. }
  544.  
  545. void Application::SetDk_blue(long propVal)
  546. {
  547.     SetProperty(0x2d, VT_I4, propVal);
  548. }
  549.  
  550. long Application::GetDk_yellow()
  551. {
  552.     long result;
  553.     GetProperty(0x2e, VT_I4, (void*)&result);
  554.     return result;
  555. }
  556.  
  557. void Application::SetDk_yellow(long propVal)
  558. {
  559.     SetProperty(0x2e, VT_I4, propVal);
  560. }
  561.  
  562. long Application::GetDk_magenta()
  563. {
  564.     long result;
  565.     GetProperty(0x2f, VT_I4, (void*)&result);
  566.     return result;
  567. }
  568.  
  569. void Application::SetDk_magenta(long propVal)
  570. {
  571.     SetProperty(0x2f, VT_I4, propVal);
  572. }
  573.  
  574. long Application::GetDk_cyan()
  575. {
  576.     long result;
  577.     GetProperty(0x30, VT_I4, (void*)&result);
  578.     return result;
  579. }
  580.  
  581. void Application::SetDk_cyan(long propVal)
  582. {
  583.     SetProperty(0x30, VT_I4, propVal);
  584. }
  585.  
  586. long Application::GetDk_gray()
  587. {
  588.     long result;
  589.     GetProperty(0x31, VT_I4, (void*)&result);
  590.     return result;
  591. }
  592.  
  593. void Application::SetDk_gray(long propVal)
  594. {
  595.     SetProperty(0x31, VT_I4, propVal);
  596. }
  597.  
  598. BOOL Application::GetStatusBarVisible()
  599. {
  600.     BOOL result;
  601.     GetProperty(0x32, VT_BOOL, (void*)&result);
  602.     return result;
  603. }
  604.  
  605. void Application::SetStatusBarVisible(BOOL propVal)
  606. {
  607.     SetProperty(0x32, VT_BOOL, propVal);
  608. }
  609.  
  610. BOOL Application::GetZoomWindowVisible()
  611. {
  612.     BOOL result;
  613.     GetProperty(0x33, VT_BOOL, (void*)&result);
  614.     return result;
  615. }
  616.  
  617. void Application::SetZoomWindowVisible(BOOL propVal)
  618. {
  619.     SetProperty(0x33, VT_BOOL, propVal);
  620. }
  621.  
  622. /////////////////////////////////////////////////////////////////////////////
  623. // Application operations
  624.  
  625. void Application::Activate()
  626. {
  627.     InvokeHelper(0x34, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  628. }
  629.  
  630. void Application::ArrangeIcons()
  631. {
  632.     InvokeHelper(0x35, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  633. }
  634.  
  635. long Application::BasicColor(short Color)
  636. {
  637.     long result;
  638.     static BYTE BASED_CODE parms[] =
  639.         VTS_I2;
  640.     InvokeHelper(0x36, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  641.         Color);
  642.     return result;
  643. }
  644.  
  645. void Application::CascadeCharts()
  646. {
  647.     InvokeHelper(0x37, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  648. }
  649.  
  650. void Application::ChartTypeShutdown(const char* ChartType, const char* ApplicationName)
  651. {
  652.     static BYTE BASED_CODE parms[] =
  653.         VTS_BSTR VTS_BSTR;
  654.     InvokeHelper(0x38, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  655.          ChartType, ApplicationName);
  656. }
  657.  
  658. void Application::CloseAll()
  659. {
  660.     InvokeHelper(0x39, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  661. }
  662.  
  663. BOOL Application::CreateAddOn(short Position, const char* HintName, const char* ProgramFileName, const VARIANT& IconFileName)
  664. {
  665.     BOOL result;
  666.     static BYTE BASED_CODE parms[] =
  667.         VTS_I2 VTS_BSTR VTS_BSTR VTS_VARIANT;
  668.     InvokeHelper(0x3a, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  669.         Position, HintName, ProgramFileName, &IconFileName);
  670.     return result;
  671. }
  672.  
  673. LPDISPATCH Application::AddMenu(const char* MenuName, LPDISPATCH VBXDispatch, const char* ProgramName, const VARIANT& ChartType)
  674. {
  675.     LPDISPATCH result;
  676.     static BYTE BASED_CODE parms[] =
  677.         VTS_BSTR VTS_DISPATCH VTS_BSTR VTS_VARIANT;
  678.     InvokeHelper(0x3b, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  679.         MenuName, VBXDispatch, ProgramName, &ChartType);
  680.     return result;
  681. }
  682.  
  683. void Application::Help(const VARIANT& HelpFileName, const VARIANT& HelpContext)
  684. {
  685.     static BYTE BASED_CODE parms[] =
  686.         VTS_VARIANT VTS_VARIANT;
  687.     InvokeHelper(0x3c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  688.          &HelpFileName, &HelpContext);
  689. }
  690.  
  691. void Application::HidePercentGauge()
  692. {
  693.     InvokeHelper(0x3d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  694. }
  695.  
  696. void Application::Hint(const char* HintText)
  697. {
  698.     static BYTE BASED_CODE parms[] =
  699.         VTS_BSTR;
  700.     InvokeHelper(0x3e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  701.          HintText);
  702. }
  703.  
  704. long Application::MakeRGB(short Red, short Green, short Blue)
  705. {
  706.     long result;
  707.     static BYTE BASED_CODE parms[] =
  708.         VTS_I2 VTS_I2 VTS_I2;
  709.     InvokeHelper(0x3f, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  710.         Red, Green, Blue);
  711.     return result;
  712. }
  713.  
  714. void Application::Maximize()
  715. {
  716.     InvokeHelper(0x40, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  717. }
  718.  
  719. void Application::Minimize()
  720. {
  721.     InvokeHelper(0x41, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  722. }
  723.  
  724. long Application::MsgBox(const char* MessageText, const VARIANT& BoxType, const VARIANT& BoxTitle)
  725. {
  726.     long result;
  727.     static BYTE BASED_CODE parms[] =
  728.         VTS_BSTR VTS_VARIANT VTS_VARIANT;
  729.     InvokeHelper(0x42, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  730.         MessageText, &BoxType, &BoxTitle);
  731.     return result;
  732. }
  733.  
  734. LPDISPATCH Application::New()
  735. {
  736.     LPDISPATCH result;
  737.     InvokeHelper(0x43, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  738.     return result;
  739. }
  740.  
  741. LPDISPATCH Application::NewFromTemplate(const char* TemplateName)
  742. {
  743.     LPDISPATCH result;
  744.     static BYTE BASED_CODE parms[] =
  745.         VTS_BSTR;
  746.     InvokeHelper(0x44, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  747.         TemplateName);
  748.     return result;
  749. }
  750.  
  751. LPDISPATCH Application::Open(const char* PathName, const VARIANT& AsReadOnly)
  752. {
  753.     LPDISPATCH result;
  754.     static BYTE BASED_CODE parms[] =
  755.         VTS_BSTR VTS_VARIANT;
  756.     InvokeHelper(0x45, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  757.         PathName, &AsReadOnly);
  758.     return result;
  759. }
  760.  
  761. void Application::PercentGauge(const VARIANT& TitleBar, const VARIANT& TextLine1, const VARIANT& TextLine2)
  762. {
  763.     static BYTE BASED_CODE parms[] =
  764.         VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  765.     InvokeHelper(0x46, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  766.          &TitleBar, &TextLine1, &TextLine2);
  767. }
  768.  
  769. BOOL Application::PercentGaugeCancelled()
  770. {
  771.     BOOL result;
  772.     InvokeHelper(0x47, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  773.     return result;
  774. }
  775.  
  776. void Application::Quit()
  777. {
  778.     InvokeHelper(0x48, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  779. }
  780.  
  781. BOOL Application::RegisterEvent(LPDISPATCH VBXDispatch, const char* ProgramName, const char* EventName, const VARIANT& ChartType)
  782. {
  783.     BOOL result;
  784.     static BYTE BASED_CODE parms[] =
  785.         VTS_DISPATCH VTS_BSTR VTS_BSTR VTS_VARIANT;
  786.     InvokeHelper(0x49, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  787.         VBXDispatch, ProgramName, EventName, &ChartType);
  788.     return result;
  789. }
  790.  
  791. BOOL Application::RemoveAddOn(const VARIANT& Key)
  792. {
  793.     BOOL result;
  794.     static BYTE BASED_CODE parms[] =
  795.         VTS_VARIANT;
  796.     InvokeHelper(0x4a, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  797.         &Key);
  798.     return result;
  799. }
  800.  
  801. void Application::RemoveMenu(const char* MenuName)
  802. {
  803.     static BYTE BASED_CODE parms[] =
  804.         VTS_BSTR;
  805.     InvokeHelper(0x4b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  806.          MenuName);
  807. }
  808.  
  809. void Application::Restore()
  810. {
  811.     InvokeHelper(0x4c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  812. }
  813.  
  814. void Application::TileCharts()
  815. {
  816.     InvokeHelper(0x4d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  817. }
  818.  
  819. BOOL Application::Undo()
  820. {
  821.     BOOL result;
  822.     InvokeHelper(0x4e, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  823.     return result;
  824. }
  825.  
  826. BOOL Application::UnRegisterEvent(LPDISPATCH VBXDispatch, const VARIANT& EventName, const VARIANT& ChartType)
  827. {
  828.     BOOL result;
  829.     static BYTE BASED_CODE parms[] =
  830.         VTS_DISPATCH VTS_VARIANT VTS_VARIANT;
  831.     InvokeHelper(0x4f, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  832.         VBXDispatch, &EventName, &ChartType);
  833.     return result;
  834. }
  835.  
  836. BOOL Application::_UnRegAll(LPDISPATCH VBXDispatch)
  837. {
  838.     BOOL result;
  839.     static BYTE BASED_CODE parms[] =
  840.         VTS_DISPATCH;
  841.     InvokeHelper(0x50, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  842.         VBXDispatch);
  843.     return result;
  844. }
  845.  
  846.  
  847. /////////////////////////////////////////////////////////////////////////////
  848. // Charts properties
  849.  
  850. LPDISPATCH Charts::GetApplication()
  851. {
  852.     LPDISPATCH result;
  853.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  854.     return result;
  855. }
  856.  
  857. void Charts::SetApplication(LPDISPATCH propVal)
  858. {
  859.     SetProperty(0x1, VT_DISPATCH, propVal);
  860. }
  861.  
  862. long Charts::GetCount()
  863. {
  864.     long result;
  865.     GetProperty(0x2, VT_I4, (void*)&result);
  866.     return result;
  867. }
  868.  
  869. void Charts::SetCount(long propVal)
  870. {
  871.     SetProperty(0x2, VT_I4, propVal);
  872. }
  873.  
  874. LPDISPATCH Charts::GetParent()
  875. {
  876.     LPDISPATCH result;
  877.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  878.     return result;
  879. }
  880.  
  881. void Charts::SetParent(LPDISPATCH propVal)
  882. {
  883.     SetProperty(0x3, VT_DISPATCH, propVal);
  884. }
  885.  
  886. /////////////////////////////////////////////////////////////////////////////
  887. // Charts operations
  888.  
  889. LPDISPATCH Charts::Add()
  890. {
  891.     LPDISPATCH result;
  892.     InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  893.     return result;
  894. }
  895.  
  896. LPDISPATCH Charts::AddFromTemplate(const char* TemplateName)
  897. {
  898.     LPDISPATCH result;
  899.     static BYTE BASED_CODE parms[] =
  900.         VTS_BSTR;
  901.     InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  902.         TemplateName);
  903.     return result;
  904. }
  905.  
  906. void Charts::CloseAll()
  907. {
  908.     InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  909. }
  910.  
  911. LPDISPATCH Charts::Item(const VARIANT& PathName)
  912. {
  913.     LPDISPATCH result;
  914.     static BYTE BASED_CODE parms[] =
  915.         VTS_VARIANT;
  916.     InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  917.         &PathName);
  918.     return result;
  919. }
  920.  
  921. LPDISPATCH Charts::Open(const char* PathName, const VARIANT& AsReadOnly)
  922. {
  923.     LPDISPATCH result;
  924.     static BYTE BASED_CODE parms[] =
  925.         VTS_BSTR VTS_VARIANT;
  926.     InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  927.         PathName, &AsReadOnly);
  928.     return result;
  929. }
  930.  
  931.  
  932. /////////////////////////////////////////////////////////////////////////////
  933. // Chart properties
  934.  
  935. LPDISPATCH Chart::GetApplication()
  936. {
  937.     LPDISPATCH result;
  938.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  939.     return result;
  940. }
  941.  
  942. void Chart::SetApplication(LPDISPATCH propVal)
  943. {
  944.     SetProperty(0x1, VT_DISPATCH, propVal);
  945. }
  946.  
  947. short Chart::GetCurrentLineRouting()
  948. {
  949.     short result;
  950.     GetProperty(0x2, VT_I2, (void*)&result);
  951.     return result;
  952. }
  953.  
  954. void Chart::SetCurrentLineRouting(short propVal)
  955. {
  956.     SetProperty(0x2, VT_I2, propVal);
  957. }
  958.  
  959. CString Chart::GetCurrentShape()
  960. {
  961.     CString result;
  962.     GetProperty(0x3, VT_BSTR, (void*)&result);
  963.     return result;
  964. }
  965.  
  966. void Chart::SetCurrentShape(const char* propVal)
  967. {
  968.     SetProperty(0x3, VT_BSTR, propVal);
  969. }
  970.  
  971. CString Chart::GetCurrentShapePalette()
  972. {
  973.     CString result;
  974.     GetProperty(0x4, VT_BSTR, (void*)&result);
  975.     return result;
  976. }
  977.  
  978. void Chart::SetCurrentShapePalette(const char* propVal)
  979. {
  980.     SetProperty(0x4, VT_BSTR, propVal);
  981. }
  982.  
  983. short Chart::GetDrawDirection()
  984. {
  985.     short result;
  986.     GetProperty(0x5, VT_I2, (void*)&result);
  987.     return result;
  988. }
  989.  
  990. void Chart::SetDrawDirection(short propVal)
  991. {
  992.     SetProperty(0x5, VT_I2, propVal);
  993. }
  994.  
  995. double Chart::GetDrawPositionX()
  996. {
  997.     double result;
  998.     GetProperty(0x6, VT_R8, (void*)&result);
  999.     return result;
  1000. }
  1001.  
  1002. void Chart::SetDrawPositionX(double propVal)
  1003. {
  1004.     SetProperty(0x6, VT_R8, propVal);
  1005. }
  1006.  
  1007. double Chart::GetDrawPositionY()
  1008. {
  1009.     double result;
  1010.     GetProperty(0x7, VT_R8, (void*)&result);
  1011.     return result;
  1012. }
  1013.  
  1014. void Chart::SetDrawPositionY(double propVal)
  1015. {
  1016.     SetProperty(0x7, VT_R8, propVal);
  1017. }
  1018.  
  1019. double Chart::GetDrawSpacingX()
  1020. {
  1021.     double result;
  1022.     GetProperty(0x8, VT_R8, (void*)&result);
  1023.     return result;
  1024. }
  1025.  
  1026. void Chart::SetDrawSpacingX(double propVal)
  1027. {
  1028.     SetProperty(0x8, VT_R8, propVal);
  1029. }
  1030.  
  1031. double Chart::GetDrawSpacingY()
  1032. {
  1033.     double result;
  1034.     GetProperty(0x9, VT_R8, (void*)&result);
  1035.     return result;
  1036. }
  1037.  
  1038. void Chart::SetDrawSpacingY(double propVal)
  1039. {
  1040.     SetProperty(0x9, VT_R8, propVal);
  1041. }
  1042.  
  1043. LPDISPATCH Chart::GetFieldFont()
  1044. {
  1045.     LPDISPATCH result;
  1046.     GetProperty(0xa, VT_DISPATCH, (void*)&result);
  1047.     return result;
  1048. }
  1049.  
  1050. void Chart::SetFieldFont(LPDISPATCH propVal)
  1051. {
  1052.     SetProperty(0xa, VT_DISPATCH, propVal);
  1053. }
  1054.  
  1055. BOOL Chart::GetFieldNamesHidden()
  1056. {
  1057.     BOOL result;
  1058.     GetProperty(0xb, VT_BOOL, (void*)&result);
  1059.     return result;
  1060. }
  1061.  
  1062. void Chart::SetFieldNamesHidden(BOOL propVal)
  1063. {
  1064.     SetProperty(0xb, VT_BOOL, propVal);
  1065. }
  1066.  
  1067. short Chart::GetFieldPlacement()
  1068. {
  1069.     short result;
  1070.     GetProperty(0xc, VT_I2, (void*)&result);
  1071.     return result;
  1072. }
  1073.  
  1074. void Chart::SetFieldPlacement(short propVal)
  1075. {
  1076.     SetProperty(0xc, VT_I2, propVal);
  1077. }
  1078.  
  1079. short Chart::GetFieldsDaysPerWeek()
  1080. {
  1081.     short result;
  1082.     GetProperty(0xd, VT_I2, (void*)&result);
  1083.     return result;
  1084. }
  1085.  
  1086. void Chart::SetFieldsDaysPerWeek(short propVal)
  1087. {
  1088.     SetProperty(0xd, VT_I2, propVal);
  1089. }
  1090.  
  1091. short Chart::GetFieldsHoursPerDay()
  1092. {
  1093.     short result;
  1094.     GetProperty(0xe, VT_I2, (void*)&result);
  1095.     return result;
  1096. }
  1097.  
  1098. void Chart::SetFieldsHoursPerDay(short propVal)
  1099. {
  1100.     SetProperty(0xe, VT_I2, propVal);
  1101. }
  1102.  
  1103. BOOL Chart::GetFieldsOpaque()
  1104. {
  1105.     BOOL result;
  1106.     GetProperty(0xf, VT_BOOL, (void*)&result);
  1107.     return result;
  1108. }
  1109.  
  1110. void Chart::SetFieldsOpaque(BOOL propVal)
  1111. {
  1112.     SetProperty(0xf, VT_BOOL, propVal);
  1113. }
  1114.  
  1115. LPDISPATCH Chart::GetFieldTemplates()
  1116. {
  1117.     LPDISPATCH result;
  1118.     GetProperty(0x10, VT_DISPATCH, (void*)&result);
  1119.     return result;
  1120. }
  1121.  
  1122. void Chart::SetFieldTemplates(LPDISPATCH propVal)
  1123. {
  1124.     SetProperty(0x10, VT_DISPATCH, propVal);
  1125. }
  1126.  
  1127. CString Chart::GetFullName()
  1128. {
  1129.     CString result;
  1130.     GetProperty(0x11, VT_BSTR, (void*)&result);
  1131.     return result;
  1132. }
  1133.  
  1134. void Chart::SetFullName(const char* propVal)
  1135. {
  1136.     SetProperty(0x11, VT_BSTR, propVal);
  1137. }
  1138.  
  1139. BOOL Chart::GetGuidelinesOn()
  1140. {
  1141.     BOOL result;
  1142.     GetProperty(0x12, VT_BOOL, (void*)&result);
  1143.     return result;
  1144. }
  1145.  
  1146. void Chart::SetGuidelinesOn(BOOL propVal)
  1147. {
  1148.     SetProperty(0x12, VT_BOOL, propVal);
  1149. }
  1150.  
  1151. BOOL Chart::GetHasDiskFile()
  1152. {
  1153.     BOOL result;
  1154.     GetProperty(0x13, VT_BOOL, (void*)&result);
  1155.     return result;
  1156. }
  1157.  
  1158. void Chart::SetHasDiskFile(BOOL propVal)
  1159. {
  1160.     SetProperty(0x13, VT_BOOL, propVal);
  1161. }
  1162.  
  1163. CString Chart::GetLaunchIndicator()
  1164. {
  1165.     CString result;
  1166.     GetProperty(0x14, VT_BSTR, (void*)&result);
  1167.     return result;
  1168. }
  1169.  
  1170. void Chart::SetLaunchIndicator(const char* propVal)
  1171. {
  1172.     SetProperty(0x14, VT_BSTR, propVal);
  1173. }
  1174.  
  1175. BOOL Chart::GetLaunchShadow()
  1176. {
  1177.     BOOL result;
  1178.     GetProperty(0x15, VT_BOOL, (void*)&result);
  1179.     return result;
  1180. }
  1181.  
  1182. void Chart::SetLaunchShadow(BOOL propVal)
  1183. {
  1184.     SetProperty(0x15, VT_BOOL, propVal);
  1185. }
  1186.  
  1187. short Chart::GetLineCrossoverSize()
  1188. {
  1189.     short result;
  1190.     GetProperty(0x16, VT_I2, (void*)&result);
  1191.     return result;
  1192. }
  1193.  
  1194. void Chart::SetLineCrossoverSize(short propVal)
  1195. {
  1196.     SetProperty(0x16, VT_I2, propVal);
  1197. }
  1198.  
  1199. short Chart::GetLineCrossoverStyle()
  1200. {
  1201.     short result;
  1202.     GetProperty(0x17, VT_I2, (void*)&result);
  1203.     return result;
  1204. }
  1205.  
  1206. void Chart::SetLineCrossoverStyle(short propVal)
  1207. {
  1208.     SetProperty(0x17, VT_I2, propVal);
  1209. }
  1210.  
  1211. CString Chart::GetLinkIndicator()
  1212. {
  1213.     CString result;
  1214.     GetProperty(0x18, VT_BSTR, (void*)&result);
  1215.     return result;
  1216. }
  1217.  
  1218. void Chart::SetLinkIndicator(const char* propVal)
  1219. {
  1220.     SetProperty(0x18, VT_BSTR, propVal);
  1221. }
  1222.  
  1223. BOOL Chart::GetLinkShadow()
  1224. {
  1225.     BOOL result;
  1226.     GetProperty(0x19, VT_BOOL, (void*)&result);
  1227.     return result;
  1228. }
  1229.  
  1230. void Chart::SetLinkShadow(BOOL propVal)
  1231. {
  1232.     SetProperty(0x19, VT_BOOL, propVal);
  1233. }
  1234.  
  1235. LPDISPATCH Chart::GetMasterItems()
  1236. {
  1237.     LPDISPATCH result;
  1238.     GetProperty(0x1a, VT_DISPATCH, (void*)&result);
  1239.     return result;
  1240. }
  1241.  
  1242. void Chart::SetMasterItems(LPDISPATCH propVal)
  1243. {
  1244.     SetProperty(0x1a, VT_DISPATCH, propVal);
  1245. }
  1246.  
  1247. CString Chart::GetName()
  1248. {
  1249.     CString result;
  1250.     GetProperty(0x1b, VT_BSTR, (void*)&result);
  1251.     return result;
  1252. }
  1253.  
  1254. void Chart::SetName(const char* propVal)
  1255. {
  1256.     SetProperty(0x1b, VT_BSTR, propVal);
  1257. }
  1258.  
  1259. CString Chart::GetNextNumber()
  1260. {
  1261.     CString result;
  1262.     GetProperty(0x1c, VT_BSTR, (void*)&result);
  1263.     return result;
  1264. }
  1265.  
  1266. void Chart::SetNextNumber(const char* propVal)
  1267. {
  1268.     SetProperty(0x1c, VT_BSTR, propVal);
  1269. }
  1270.  
  1271. double Chart::GetNextShapeHeight()
  1272. {
  1273.     double result;
  1274.     GetProperty(0x1d, VT_R8, (void*)&result);
  1275.     return result;
  1276. }
  1277.  
  1278. void Chart::SetNextShapeHeight(double propVal)
  1279. {
  1280.     SetProperty(0x1d, VT_R8, propVal);
  1281. }
  1282.  
  1283. double Chart::GetNextShapeWidth()
  1284. {
  1285.     double result;
  1286.     GetProperty(0x1e, VT_R8, (void*)&result);
  1287.     return result;
  1288. }
  1289.  
  1290. void Chart::SetNextShapeWidth(double propVal)
  1291. {
  1292.     SetProperty(0x1e, VT_R8, propVal);
  1293. }
  1294.  
  1295. BOOL Chart::GetNoRepaint()
  1296. {
  1297.     BOOL result;
  1298.     GetProperty(0x1f, VT_BOOL, (void*)&result);
  1299.     return result;
  1300. }
  1301.  
  1302. void Chart::SetNoRepaint(BOOL propVal)
  1303. {
  1304.     SetProperty(0x1f, VT_BOOL, propVal);
  1305. }
  1306.  
  1307. CString Chart::GetNoteIndicator()
  1308. {
  1309.     CString result;
  1310.     GetProperty(0x20, VT_BSTR, (void*)&result);
  1311.     return result;
  1312. }
  1313.  
  1314. void Chart::SetNoteIndicator(const char* propVal)
  1315. {
  1316.     SetProperty(0x20, VT_BSTR, propVal);
  1317. }
  1318.  
  1319. BOOL Chart::GetNoteShadow()
  1320. {
  1321.     BOOL result;
  1322.     GetProperty(0x21, VT_BOOL, (void*)&result);
  1323.     return result;
  1324. }
  1325.  
  1326. void Chart::SetNoteShadow(BOOL propVal)
  1327. {
  1328.     SetProperty(0x21, VT_BOOL, propVal);
  1329. }
  1330.  
  1331. LPDISPATCH Chart::GetObjects()
  1332. {
  1333.     LPDISPATCH result;
  1334.     GetProperty(0x22, VT_DISPATCH, (void*)&result);
  1335.     return result;
  1336. }
  1337.  
  1338. void Chart::SetObjects(LPDISPATCH propVal)
  1339. {
  1340.     SetProperty(0x22, VT_DISPATCH, propVal);
  1341. }
  1342.  
  1343. LPDISPATCH Chart::GetNumberFont()
  1344. {
  1345.     LPDISPATCH result;
  1346.     GetProperty(0x23, VT_DISPATCH, (void*)&result);
  1347.     return result;
  1348. }
  1349.  
  1350. void Chart::SetNumberFont(LPDISPATCH propVal)
  1351. {
  1352.     SetProperty(0x23, VT_DISPATCH, propVal);
  1353. }
  1354.  
  1355. short Chart::GetPageCount()
  1356. {
  1357.     short result;
  1358.     GetProperty(0x24, VT_I2, (void*)&result);
  1359.     return result;
  1360. }
  1361.  
  1362. void Chart::SetPageCount(short propVal)
  1363. {
  1364.     SetProperty(0x24, VT_I2, propVal);
  1365. }
  1366.  
  1367. LPDISPATCH Chart::GetPageLayout()
  1368. {
  1369.     LPDISPATCH result;
  1370.     GetProperty(0x25, VT_DISPATCH, (void*)&result);
  1371.     return result;
  1372. }
  1373.  
  1374. void Chart::SetPageLayout(LPDISPATCH propVal)
  1375. {
  1376.     SetProperty(0x25, VT_DISPATCH, propVal);
  1377. }
  1378.  
  1379. LPDISPATCH Chart::GetParent()
  1380. {
  1381.     LPDISPATCH result;
  1382.     GetProperty(0x26, VT_DISPATCH, (void*)&result);
  1383.     return result;
  1384. }
  1385.  
  1386. void Chart::SetParent(LPDISPATCH propVal)
  1387. {
  1388.     SetProperty(0x26, VT_DISPATCH, propVal);
  1389. }
  1390.  
  1391. BOOL Chart::GetProtected()
  1392. {
  1393.     BOOL result;
  1394.     GetProperty(0x27, VT_BOOL, (void*)&result);
  1395.     return result;
  1396. }
  1397.  
  1398. void Chart::SetProtected(BOOL propVal)
  1399. {
  1400.     SetProperty(0x27, VT_BOOL, propVal);
  1401. }
  1402.  
  1403. BOOL Chart::GetReadOnly()
  1404. {
  1405.     BOOL result;
  1406.     GetProperty(0x28, VT_BOOL, (void*)&result);
  1407.     return result;
  1408. }
  1409.  
  1410. void Chart::SetReadOnly(BOOL propVal)
  1411. {
  1412.     SetProperty(0x28, VT_BOOL, propVal);
  1413. }
  1414.  
  1415. BOOL Chart::GetSaved()
  1416. {
  1417.     BOOL result;
  1418.     GetProperty(0x29, VT_BOOL, (void*)&result);
  1419.     return result;
  1420. }
  1421.  
  1422. void Chart::SetSaved(BOOL propVal)
  1423. {
  1424.     SetProperty(0x29, VT_BOOL, propVal);
  1425. }
  1426.  
  1427. double Chart::GetScrollLeft()
  1428. {
  1429.     double result;
  1430.     GetProperty(0x2a, VT_R8, (void*)&result);
  1431.     return result;
  1432. }
  1433.  
  1434. void Chart::SetScrollLeft(double propVal)
  1435. {
  1436.     SetProperty(0x2a, VT_R8, propVal);
  1437. }
  1438.  
  1439. double Chart::GetScrollTop()
  1440. {
  1441.     double result;
  1442.     GetProperty(0x2b, VT_R8, (void*)&result);
  1443.     return result;
  1444. }
  1445.  
  1446. void Chart::SetScrollTop(double propVal)
  1447. {
  1448.     SetProperty(0x2b, VT_R8, propVal);
  1449. }
  1450.  
  1451. long Chart::GetSelectedLineCount()
  1452. {
  1453.     long result;
  1454.     GetProperty(0x2c, VT_I4, (void*)&result);
  1455.     return result;
  1456. }
  1457.  
  1458. void Chart::SetSelectedLineCount(long propVal)
  1459. {
  1460.     SetProperty(0x2c, VT_I4, propVal);
  1461. }
  1462.  
  1463. long Chart::GetSelectedObjectCount()
  1464. {
  1465.     long result;
  1466.     GetProperty(0x2d, VT_I4, (void*)&result);
  1467.     return result;
  1468. }
  1469.  
  1470. void Chart::SetSelectedObjectCount(long propVal)
  1471. {
  1472.     SetProperty(0x2d, VT_I4, propVal);
  1473. }
  1474.  
  1475. long Chart::GetSelectedOtherCount()
  1476. {
  1477.     long result;
  1478.     GetProperty(0x2e, VT_I4, (void*)&result);
  1479.     return result;
  1480. }
  1481.  
  1482. void Chart::SetSelectedOtherCount(long propVal)
  1483. {
  1484.     SetProperty(0x2e, VT_I4, propVal);
  1485. }
  1486.  
  1487. long Chart::GetSelectedShapeCount()
  1488. {
  1489.     long result;
  1490.     GetProperty(0x2f, VT_I4, (void*)&result);
  1491.     return result;
  1492. }
  1493.  
  1494. void Chart::SetSelectedShapeCount(long propVal)
  1495. {
  1496.     SetProperty(0x2f, VT_I4, propVal);
  1497. }
  1498.  
  1499. BOOL Chart::GetShowLegend()
  1500. {
  1501.     BOOL result;
  1502.     GetProperty(0x30, VT_BOOL, (void*)&result);
  1503.     return result;
  1504. }
  1505.  
  1506. void Chart::SetShowLegend(BOOL propVal)
  1507. {
  1508.     SetProperty(0x30, VT_BOOL, propVal);
  1509. }
  1510.  
  1511. BOOL Chart::GetShowNodesOnLines()
  1512. {
  1513.     BOOL result;
  1514.     GetProperty(0x31, VT_BOOL, (void*)&result);
  1515.     return result;
  1516. }
  1517.  
  1518. void Chart::SetShowNodesOnLines(BOOL propVal)
  1519. {
  1520.     SetProperty(0x31, VT_BOOL, propVal);
  1521. }
  1522.  
  1523. CString Chart::GetType()
  1524. {
  1525.     CString result;
  1526.     GetProperty(0x32, VT_BSTR, (void*)&result);
  1527.     return result;
  1528. }
  1529.  
  1530. void Chart::SetType(const char* propVal)
  1531. {
  1532.     SetProperty(0x32, VT_BSTR, propVal);
  1533. }
  1534.  
  1535. BOOL Chart::GetTypeRequiresEXE()
  1536. {
  1537.     BOOL result;
  1538.     GetProperty(0x33, VT_BOOL, (void*)&result);
  1539.     return result;
  1540. }
  1541.  
  1542. void Chart::SetTypeRequiresEXE(BOOL propVal)
  1543. {
  1544.     SetProperty(0x33, VT_BOOL, propVal);
  1545. }
  1546.  
  1547. BOOL Chart::GetTypeUsesEXE()
  1548. {
  1549.     BOOL result;
  1550.     GetProperty(0x34, VT_BOOL, (void*)&result);
  1551.     return result;
  1552. }
  1553.  
  1554. void Chart::SetTypeUsesEXE(BOOL propVal)
  1555. {
  1556.     SetProperty(0x34, VT_BOOL, propVal);
  1557. }
  1558.  
  1559. short Chart::GetUnits()
  1560. {
  1561.     short result;
  1562.     GetProperty(0x35, VT_I2, (void*)&result);
  1563.     return result;
  1564. }
  1565.  
  1566. void Chart::SetUnits(short propVal)
  1567. {
  1568.     SetProperty(0x35, VT_I2, propVal);
  1569. }
  1570.  
  1571. BOOL Chart::GetValid()
  1572. {
  1573.     BOOL result;
  1574.     GetProperty(0x36, VT_BOOL, (void*)&result);
  1575.     return result;
  1576. }
  1577.  
  1578. void Chart::SetValid(BOOL propVal)
  1579. {
  1580.     SetProperty(0x36, VT_BOOL, propVal);
  1581. }
  1582.  
  1583. short Chart::GetView()
  1584. {
  1585.     short result;
  1586.     GetProperty(0x37, VT_I2, (void*)&result);
  1587.     return result;
  1588. }
  1589.  
  1590. void Chart::SetView(short propVal)
  1591. {
  1592.     SetProperty(0x37, VT_I2, propVal);
  1593. }
  1594.  
  1595. long Chart::GetWindowHandle()
  1596. {
  1597.     long result;
  1598.     GetProperty(0x38, VT_I4, (void*)&result);
  1599.     return result;
  1600. }
  1601.  
  1602. void Chart::SetWindowHandle(long propVal)
  1603. {
  1604.     SetProperty(0x38, VT_I4, propVal);
  1605. }
  1606.  
  1607. short Chart::GetZoomPercentage()
  1608. {
  1609.     short result;
  1610.     GetProperty(0x39, VT_I2, (void*)&result);
  1611.     return result;
  1612. }
  1613.  
  1614. void Chart::SetZoomPercentage(short propVal)
  1615. {
  1616.     SetProperty(0x39, VT_I2, propVal);
  1617. }
  1618.  
  1619. /////////////////////////////////////////////////////////////////////////////
  1620. // Chart operations
  1621.  
  1622. void Chart::Activate()
  1623. {
  1624.     InvokeHelper(0x3a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1625. }
  1626.  
  1627. void Chart::AddHorizontalGuideline(double Position)
  1628. {
  1629.     static BYTE BASED_CODE parms[] =
  1630.         VTS_R8;
  1631.     InvokeHelper(0x3b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1632.          Position);
  1633. }
  1634.  
  1635. void Chart::AddVerticalGuideline(double Position)
  1636. {
  1637.     static BYTE BASED_CODE parms[] =
  1638.         VTS_R8;
  1639.     InvokeHelper(0x3c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1640.          Position);
  1641. }
  1642.  
  1643. void Chart::CancelFullScreen()
  1644. {
  1645.     InvokeHelper(0x3d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1646. }
  1647.  
  1648. void Chart::ClearGuidelines()
  1649. {
  1650.     InvokeHelper(0x3e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1651. }
  1652.  
  1653. BOOL Chart::Clear()
  1654. {
  1655.     BOOL result;
  1656.     InvokeHelper(0x3f, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1657.     return result;
  1658. }
  1659.  
  1660. BOOL Chart::ClipboardFormatAvailable(short Format)
  1661. {
  1662.     BOOL result;
  1663.     static BYTE BASED_CODE parms[] =
  1664.         VTS_I2;
  1665.     InvokeHelper(0x6b, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1666.         Format);
  1667.     return result;
  1668. }
  1669.  
  1670. void Chart::CloseChart()
  1671. {
  1672.     InvokeHelper(0x40, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1673. }
  1674.  
  1675. BOOL Chart::Copy()
  1676. {
  1677.     BOOL result;
  1678.     InvokeHelper(0x41, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1679.     return result;
  1680. }
  1681.  
  1682. BOOL Chart::Cut()
  1683. {
  1684.     BOOL result;
  1685.     InvokeHelper(0x42, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1686.     return result;
  1687. }
  1688.  
  1689. void Chart::DeselectAll()
  1690. {
  1691.     InvokeHelper(0x43, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1692. }
  1693.  
  1694. LPDISPATCH Chart::DrawFreeLine(double HorizontalLocation, double VerticalLocation)
  1695. {
  1696.     LPDISPATCH result;
  1697.     static BYTE BASED_CODE parms[] =
  1698.         VTS_R8 VTS_R8;
  1699.     InvokeHelper(0x44, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  1700.         HorizontalLocation, VerticalLocation);
  1701.     return result;
  1702. }
  1703.  
  1704. LPDISPATCH Chart::DrawLine(LPDISPATCH ShapeObject1, LPDISPATCH ShapeObject2, const VARIANT& ExitDirection, const VARIANT& EnterDirection)
  1705. {
  1706.     LPDISPATCH result;
  1707.     static BYTE BASED_CODE parms[] =
  1708.         VTS_DISPATCH VTS_DISPATCH VTS_VARIANT VTS_VARIANT;
  1709.     InvokeHelper(0x45, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  1710.         ShapeObject1, ShapeObject2, &ExitDirection, &EnterDirection);
  1711.     return result;
  1712. }
  1713.  
  1714. LPDISPATCH Chart::DrawLineToOneObject(LPDISPATCH ShapeObject, const VARIANT& EnterDirection)
  1715. {
  1716.     LPDISPATCH result;
  1717.     static BYTE BASED_CODE parms[] =
  1718.         VTS_DISPATCH VTS_VARIANT;
  1719.     InvokeHelper(0x46, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  1720.         ShapeObject, &EnterDirection);
  1721.     return result;
  1722. }
  1723.  
  1724. LPDISPATCH Chart::DrawShape(const VARIANT& ShapeName)
  1725. {
  1726.     LPDISPATCH result;
  1727.     static BYTE BASED_CODE parms[] =
  1728.         VTS_VARIANT;
  1729.     InvokeHelper(0x47, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  1730.         &ShapeName);
  1731.     return result;
  1732. }
  1733.  
  1734. LPDISPATCH Chart::DrawTextBlock(const char* TextString)
  1735. {
  1736.     LPDISPATCH result;
  1737.     static BYTE BASED_CODE parms[] =
  1738.         VTS_BSTR;
  1739.     InvokeHelper(0x48, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  1740.         TextString);
  1741.     return result;
  1742. }
  1743.  
  1744. BOOL Chart::Duplicate()
  1745. {
  1746.     BOOL result;
  1747.     InvokeHelper(0x49, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1748.     return result;
  1749. }
  1750.  
  1751. BOOL Chart::FullScreen()
  1752. {
  1753.     BOOL result;
  1754.     InvokeHelper(0x4a, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1755.     return result;
  1756. }
  1757.  
  1758. LPDISPATCH Chart::GroupAndLink(const VARIANT& NewChartName, const VARIANT& FieldsLinked)
  1759. {
  1760.     LPDISPATCH result;
  1761.     static BYTE BASED_CODE parms[] =
  1762.         VTS_VARIANT VTS_VARIANT;
  1763.     InvokeHelper(0x4b, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  1764.         &NewChartName, &FieldsLinked);
  1765.     return result;
  1766. }
  1767.  
  1768. LPDISPATCH Chart::InsertObjectFromFile(const char* Filename, const VARIANT& AsIcon, const VARIANT& AsLink)
  1769. {
  1770.     LPDISPATCH result;
  1771.     static BYTE BASED_CODE parms[] =
  1772.         VTS_BSTR VTS_VARIANT VTS_VARIANT;
  1773.     InvokeHelper(0x4c, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  1774.         Filename, &AsIcon, &AsLink);
  1775.     return result;
  1776. }
  1777.  
  1778. void Chart::Maximize()
  1779. {
  1780.     InvokeHelper(0x4d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1781. }
  1782.  
  1783. void Chart::Minimize()
  1784. {
  1785.     InvokeHelper(0x4e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1786. }
  1787.  
  1788. BOOL Chart::Paste(double HorizontalLocation, double VerticalLocation)
  1789. {
  1790.     BOOL result;
  1791.     static BYTE BASED_CODE parms[] =
  1792.         VTS_R8 VTS_R8;
  1793.     InvokeHelper(0x4f, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1794.         HorizontalLocation, VerticalLocation);
  1795.     return result;
  1796. }
  1797.  
  1798. BOOL Chart::PasteLink(double HorizontalLocation, double VerticalLocation)
  1799. {
  1800.     BOOL result;
  1801.     static BYTE BASED_CODE parms[] =
  1802.         VTS_R8 VTS_R8;
  1803.     InvokeHelper(0x50, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1804.         HorizontalLocation, VerticalLocation);
  1805.     return result;
  1806. }
  1807.  
  1808. BOOL Chart::PasteSpecial(short Format, const VARIANT& AsIcon, double HorizontalLocation, double VerticalLocation)
  1809. {
  1810.     BOOL result;
  1811.     static BYTE BASED_CODE parms[] =
  1812.         VTS_I2 VTS_VARIANT VTS_R8 VTS_R8;
  1813.     InvokeHelper(0x51, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1814.         Format, &AsIcon, HorizontalLocation, VerticalLocation);
  1815.     return result;
  1816. }
  1817.  
  1818. BOOL Chart::PrintOut(const VARIANT& FromPage, const VARIANT& ToPage, const VARIANT& Copies, const VARIANT& FitToPage, const VARIANT& PrintNotes)
  1819. {
  1820.     BOOL result;
  1821.     static BYTE BASED_CODE parms[] =
  1822.         VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  1823.     InvokeHelper(0x52, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1824.         &FromPage, &ToPage, &Copies, &FitToPage, &PrintNotes);
  1825.     return result;
  1826. }
  1827.  
  1828. BOOL Chart::PrintSelected(const VARIANT& Copies, const VARIANT& FitToPage, const VARIANT& PrintNotes)
  1829. {
  1830.     BOOL result;
  1831.     static BYTE BASED_CODE parms[] =
  1832.         VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  1833.     InvokeHelper(0x53, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1834.         &Copies, &FitToPage, &PrintNotes);
  1835.     return result;
  1836. }
  1837.  
  1838. void Chart::Repaint()
  1839. {
  1840.     InvokeHelper(0x54, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1841. }
  1842.  
  1843. void Chart::Restore()
  1844. {
  1845.     InvokeHelper(0x55, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1846. }
  1847.  
  1848. void Chart::RevertToSaved()
  1849. {
  1850.     InvokeHelper(0x56, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1851. }
  1852.  
  1853. BOOL Chart::Save(const VARIANT& Path, const VARIANT& FileType)
  1854. {
  1855.     BOOL result;
  1856.     static BYTE BASED_CODE parms[] =
  1857.         VTS_VARIANT VTS_VARIANT;
  1858.     InvokeHelper(0x57, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1859.         &Path, &FileType);
  1860.     return result;
  1861. }
  1862.  
  1863. void Chart::ScrollPage(short PageNumber)
  1864. {
  1865.     static BYTE BASED_CODE parms[] =
  1866.         VTS_I2;
  1867.     InvokeHelper(0x58, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1868.          PageNumber);
  1869. }
  1870.  
  1871. void Chart::Select(short Value)
  1872. {
  1873.     static BYTE BASED_CODE parms[] =
  1874.         VTS_I2;
  1875.     InvokeHelper(0x59, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1876.          Value);
  1877. }
  1878.  
  1879. void Chart::SelectShapeType(const char* ShapeName)
  1880. {
  1881.     static BYTE BASED_CODE parms[] =
  1882.         VTS_BSTR;
  1883.     InvokeHelper(0x5a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1884.          ShapeName);
  1885. }
  1886.  
  1887. BOOL Chart::SendMail()
  1888. {
  1889.     BOOL result;
  1890.     InvokeHelper(0x5b, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1891.     return result;
  1892. }
  1893.  
  1894. void Chart::SetDefaults(LPDISPATCH DefaultObject)
  1895. {
  1896.     static BYTE BASED_CODE parms[] =
  1897.         VTS_DISPATCH;
  1898.     InvokeHelper(0x5c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1899.          DefaultObject);
  1900. }
  1901.  
  1902. void Chart::SetProtection(BOOL Protect, const char* Password)
  1903. {
  1904.     static BYTE BASED_CODE parms[] =
  1905.         VTS_BOOL VTS_BSTR;
  1906.     InvokeHelper(0x5d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1907.          Protect, Password);
  1908. }
  1909.  
  1910. void Chart::Spelling()
  1911. {
  1912.     InvokeHelper(0x5e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1913. }
  1914.  
  1915. void Chart::ToBack()
  1916. {
  1917.     InvokeHelper(0x5f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1918. }
  1919.  
  1920. void Chart::ToFront()
  1921. {
  1922.     InvokeHelper(0x60, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1923. }
  1924.  
  1925. void Chart::UpdateFields()
  1926. {
  1927.     InvokeHelper(0x61, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1928. }
  1929.  
  1930. void Chart::PrintPreview()
  1931. {
  1932.     InvokeHelper(0x62, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1933. }
  1934.  
  1935. long Chart::ReplaceText(const char* FindText, const char* ReplacementText, const VARIANT& MatchCase, const VARIANT& WholeWord)
  1936. {
  1937.     long result;
  1938.     static BYTE BASED_CODE parms[] =
  1939.         VTS_BSTR VTS_BSTR VTS_VARIANT VTS_VARIANT;
  1940.     InvokeHelper(0x63, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  1941.         FindText, ReplacementText, &MatchCase, &WholeWord);
  1942.     return result;
  1943. }
  1944.  
  1945. BOOL Chart::Export(const char* Filename)
  1946. {
  1947.     BOOL result;
  1948.     static BYTE BASED_CODE parms[] =
  1949.         VTS_BSTR;
  1950.     InvokeHelper(0x64, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1951.         Filename);
  1952.     return result;
  1953. }
  1954.  
  1955. BOOL Chart::SpaceEvenly(short Direction)
  1956. {
  1957.     BOOL result;
  1958.     static BYTE BASED_CODE parms[] =
  1959.         VTS_I2;
  1960.     InvokeHelper(0x65, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1961.         Direction);
  1962.     return result;
  1963. }
  1964.  
  1965. BOOL Chart::MakeSameSize(short AccordingTo)
  1966. {
  1967.     BOOL result;
  1968.     static BYTE BASED_CODE parms[] =
  1969.         VTS_I2;
  1970.     InvokeHelper(0x66, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1971.         AccordingTo);
  1972.     return result;
  1973. }
  1974.  
  1975. BOOL Chart::Align(short By)
  1976. {
  1977.     BOOL result;
  1978.     static BYTE BASED_CODE parms[] =
  1979.         VTS_I2;
  1980.     InvokeHelper(0x67, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1981.         By);
  1982.     return result;
  1983. }
  1984.  
  1985. BOOL Chart::Clear_()
  1986. {
  1987.     BOOL result;
  1988.     InvokeHelper(0x68, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1989.     return result;
  1990. }
  1991.  
  1992. LPDISPATCH Chart::ImportShape(const char* Filename)
  1993. {
  1994.     LPDISPATCH result;
  1995.     static BYTE BASED_CODE parms[] =
  1996.         VTS_BSTR;
  1997.     InvokeHelper(0x69, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  1998.         Filename);
  1999.     return result;
  2000. }
  2001.  
  2002. void Chart::ScrollPosition(double LeftDistance, double TopDistance)
  2003. {
  2004.     static BYTE BASED_CODE parms[] =
  2005.         VTS_R8 VTS_R8;
  2006.     InvokeHelper(0x6a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2007.          LeftDistance, TopDistance);
  2008. }
  2009.  
  2010.  
  2011. /////////////////////////////////////////////////////////////////////////////
  2012. // FieldTemplates properties
  2013.  
  2014. LPDISPATCH FieldTemplates::GetApplication()
  2015. {
  2016.     LPDISPATCH result;
  2017.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  2018.     return result;
  2019. }
  2020.  
  2021. void FieldTemplates::SetApplication(LPDISPATCH propVal)
  2022. {
  2023.     SetProperty(0x1, VT_DISPATCH, propVal);
  2024. }
  2025.  
  2026. long FieldTemplates::GetCount()
  2027. {
  2028.     long result;
  2029.     GetProperty(0x2, VT_I4, (void*)&result);
  2030.     return result;
  2031. }
  2032.  
  2033. void FieldTemplates::SetCount(long propVal)
  2034. {
  2035.     SetProperty(0x2, VT_I4, propVal);
  2036. }
  2037.  
  2038. LPDISPATCH FieldTemplates::GetParent()
  2039. {
  2040.     LPDISPATCH result;
  2041.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  2042.     return result;
  2043. }
  2044.  
  2045. void FieldTemplates::SetParent(LPDISPATCH propVal)
  2046. {
  2047.     SetProperty(0x3, VT_DISPATCH, propVal);
  2048. }
  2049.  
  2050. /////////////////////////////////////////////////////////////////////////////
  2051. // FieldTemplates operations
  2052.  
  2053. LPDISPATCH FieldTemplates::Add(const char* FieldName, const VARIANT& FieldType)
  2054. {
  2055.     LPDISPATCH result;
  2056.     static BYTE BASED_CODE parms[] =
  2057.         VTS_BSTR VTS_VARIANT;
  2058.     InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  2059.         FieldName, &FieldType);
  2060.     return result;
  2061. }
  2062.  
  2063. void FieldTemplates::DeleteField(LPDISPATCH FieldTemplateObject)
  2064. {
  2065.     static BYTE BASED_CODE parms[] =
  2066.         VTS_DISPATCH;
  2067.     InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2068.          FieldTemplateObject);
  2069. }
  2070.  
  2071. LPDISPATCH FieldTemplates::Item(const VARIANT& CountOrFieldName, const VARIANT& FieldType)
  2072. {
  2073.     LPDISPATCH result;
  2074.     static BYTE BASED_CODE parms[] =
  2075.         VTS_VARIANT VTS_VARIANT;
  2076.     InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  2077.         &CountOrFieldName, &FieldType);
  2078.     return result;
  2079. }
  2080.  
  2081.  
  2082. /////////////////////////////////////////////////////////////////////////////
  2083. // FieldTemplate properties
  2084.  
  2085. double FieldTemplate::GetAccumulation()
  2086. {
  2087.     double result;
  2088.     GetProperty(0x1, VT_R8, (void*)&result);
  2089.     return result;
  2090. }
  2091.  
  2092. void FieldTemplate::SetAccumulation(double propVal)
  2093. {
  2094.     SetProperty(0x1, VT_R8, propVal);
  2095. }
  2096.  
  2097. short FieldTemplate::GetAccumulationMethod()
  2098. {
  2099.     short result;
  2100.     GetProperty(0x2, VT_I2, (void*)&result);
  2101.     return result;
  2102. }
  2103.  
  2104. void FieldTemplate::SetAccumulationMethod(short propVal)
  2105. {
  2106.     SetProperty(0x2, VT_I2, propVal);
  2107. }
  2108.  
  2109. LPDISPATCH FieldTemplate::GetApplication()
  2110. {
  2111.     LPDISPATCH result;
  2112.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  2113.     return result;
  2114. }
  2115.  
  2116. void FieldTemplate::SetApplication(LPDISPATCH propVal)
  2117. {
  2118.     SetProperty(0x3, VT_DISPATCH, propVal);
  2119. }
  2120.  
  2121. LPDISPATCH FieldTemplate::GetParent()
  2122. {
  2123.     LPDISPATCH result;
  2124.     GetProperty(0x4, VT_DISPATCH, (void*)&result);
  2125.     return result;
  2126. }
  2127.  
  2128. void FieldTemplate::SetParent(LPDISPATCH propVal)
  2129. {
  2130.     SetProperty(0x4, VT_DISPATCH, propVal);
  2131. }
  2132.  
  2133. short FieldTemplate::GetFormat()
  2134. {
  2135.     short result;
  2136.     GetProperty(0x5, VT_I2, (void*)&result);
  2137.     return result;
  2138. }
  2139.  
  2140. void FieldTemplate::SetFormat(short propVal)
  2141. {
  2142.     SetProperty(0x5, VT_I2, propVal);
  2143. }
  2144.  
  2145. BOOL FieldTemplate::GetHidden()
  2146. {
  2147.     BOOL result;
  2148.     GetProperty(0x6, VT_BOOL, (void*)&result);
  2149.     return result;
  2150. }
  2151.  
  2152. void FieldTemplate::SetHidden(BOOL propVal)
  2153. {
  2154.     SetProperty(0x6, VT_BOOL, propVal);
  2155. }
  2156.  
  2157. CString FieldTemplate::GetName()
  2158. {
  2159.     CString result;
  2160.     GetProperty(0x7, VT_BSTR, (void*)&result);
  2161.     return result;
  2162. }
  2163.  
  2164. void FieldTemplate::SetName(const char* propVal)
  2165. {
  2166.     SetProperty(0x7, VT_BSTR, propVal);
  2167. }
  2168.  
  2169. short FieldTemplate::GetType()
  2170. {
  2171.     short result;
  2172.     GetProperty(0x8, VT_I2, (void*)&result);
  2173.     return result;
  2174. }
  2175.  
  2176. void FieldTemplate::SetType(short propVal)
  2177. {
  2178.     SetProperty(0x8, VT_I2, propVal);
  2179. }
  2180.  
  2181. /////////////////////////////////////////////////////////////////////////////
  2182. // FieldTemplate operations
  2183.  
  2184.  
  2185. /////////////////////////////////////////////////////////////////////////////
  2186. // FieldValues properties
  2187.  
  2188. LPDISPATCH FieldValues::GetApplication()
  2189. {
  2190.     LPDISPATCH result;
  2191.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  2192.     return result;
  2193. }
  2194.  
  2195. void FieldValues::SetApplication(LPDISPATCH propVal)
  2196. {
  2197.     SetProperty(0x1, VT_DISPATCH, propVal);
  2198. }
  2199.  
  2200. long FieldValues::GetCount()
  2201. {
  2202.     long result;
  2203.     GetProperty(0x2, VT_I4, (void*)&result);
  2204.     return result;
  2205. }
  2206.  
  2207. void FieldValues::SetCount(long propVal)
  2208. {
  2209.     SetProperty(0x2, VT_I4, propVal);
  2210. }
  2211.  
  2212. LPDISPATCH FieldValues::GetParent()
  2213. {
  2214.     LPDISPATCH result;
  2215.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  2216.     return result;
  2217. }
  2218.  
  2219. void FieldValues::SetParent(LPDISPATCH propVal)
  2220. {
  2221.     SetProperty(0x3, VT_DISPATCH, propVal);
  2222. }
  2223.  
  2224. /////////////////////////////////////////////////////////////////////////////
  2225. // FieldValues operations
  2226.  
  2227. LPDISPATCH FieldValues::Item(const VARIANT& CountOrFileName, const VARIANT& FieldType)
  2228. {
  2229.     LPDISPATCH result;
  2230.     static BYTE BASED_CODE parms[] =
  2231.         VTS_VARIANT VTS_VARIANT;
  2232.     InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  2233.         &CountOrFileName, &FieldType);
  2234.     return result;
  2235. }
  2236.  
  2237.  
  2238. /////////////////////////////////////////////////////////////////////////////
  2239. // FieldValue properties
  2240.  
  2241. LPDISPATCH FieldValue::GetApplication()
  2242. {
  2243.     LPDISPATCH result;
  2244.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  2245.     return result;
  2246. }
  2247.  
  2248. void FieldValue::SetApplication(LPDISPATCH propVal)
  2249. {
  2250.     SetProperty(0x1, VT_DISPATCH, propVal);
  2251. }
  2252.  
  2253. LPDISPATCH FieldValue::GetParent()
  2254. {
  2255.     LPDISPATCH result;
  2256.     GetProperty(0x2, VT_DISPATCH, (void*)&result);
  2257.     return result;
  2258. }
  2259.  
  2260. void FieldValue::SetParent(LPDISPATCH propVal)
  2261. {
  2262.     SetProperty(0x2, VT_DISPATCH, propVal);
  2263. }
  2264.  
  2265. short FieldValue::GetDay()
  2266. {
  2267.     short result;
  2268.     GetProperty(0x3, VT_I2, (void*)&result);
  2269.     return result;
  2270. }
  2271.  
  2272. void FieldValue::SetDay(short propVal)
  2273. {
  2274.     SetProperty(0x3, VT_I2, propVal);
  2275. }
  2276.  
  2277. LPDISPATCH FieldValue::GetFieldTemplate()
  2278. {
  2279.     LPDISPATCH result;
  2280.     GetProperty(0x4, VT_DISPATCH, (void*)&result);
  2281.     return result;
  2282. }
  2283.  
  2284. void FieldValue::SetFieldTemplate(LPDISPATCH propVal)
  2285. {
  2286.     SetProperty(0x4, VT_DISPATCH, propVal);
  2287. }
  2288.  
  2289. CString FieldValue::GetFormattedValue()
  2290. {
  2291.     CString result;
  2292.     GetProperty(0x5, VT_BSTR, (void*)&result);
  2293.     return result;
  2294. }
  2295.  
  2296. void FieldValue::SetFormattedValue(const char* propVal)
  2297. {
  2298.     SetProperty(0x5, VT_BSTR, propVal);
  2299. }
  2300.  
  2301. BOOL FieldValue::GetIsEmpty()
  2302. {
  2303.     BOOL result;
  2304.     GetProperty(0x6, VT_BOOL, (void*)&result);
  2305.     return result;
  2306. }
  2307.  
  2308. void FieldValue::SetIsEmpty(BOOL propVal)
  2309. {
  2310.     SetProperty(0x6, VT_BOOL, propVal);
  2311. }
  2312.  
  2313. short FieldValue::GetMonth()
  2314. {
  2315.     short result;
  2316.     GetProperty(0x7, VT_I2, (void*)&result);
  2317.     return result;
  2318. }
  2319.  
  2320. void FieldValue::SetMonth(short propVal)
  2321. {
  2322.     SetProperty(0x7, VT_I2, propVal);
  2323. }
  2324.  
  2325. CString FieldValue::GetName()
  2326. {
  2327.     CString result;
  2328.     GetProperty(0x8, VT_BSTR, (void*)&result);
  2329.     return result;
  2330. }
  2331.  
  2332. void FieldValue::SetName(const char* propVal)
  2333. {
  2334.     SetProperty(0x8, VT_BSTR, propVal);
  2335. }
  2336.  
  2337. short FieldValue::GetType()
  2338. {
  2339.     short result;
  2340.     GetProperty(0x9, VT_I2, (void*)&result);
  2341.     return result;
  2342. }
  2343.  
  2344. void FieldValue::SetType(short propVal)
  2345. {
  2346.     SetProperty(0x9, VT_I2, propVal);
  2347. }
  2348.  
  2349. VARIANT FieldValue::GetValue()
  2350. {
  2351.     VARIANT result;
  2352.     GetProperty(0xa, VT_VARIANT, (void*)&result);
  2353.     return result;
  2354. }
  2355.  
  2356. void FieldValue::SetValue(const VARIANT& propVal)
  2357. {
  2358.     SetProperty(0xa, VT_VARIANT, &propVal);
  2359. }
  2360.  
  2361. short FieldValue::GetYear()
  2362. {
  2363.     short result;
  2364.     GetProperty(0xb, VT_I2, (void*)&result);
  2365.     return result;
  2366. }
  2367.  
  2368. void FieldValue::SetYear(short propVal)
  2369. {
  2370.     SetProperty(0xb, VT_I2, propVal);
  2371. }
  2372.  
  2373. /////////////////////////////////////////////////////////////////////////////
  2374. // FieldValue operations
  2375.  
  2376. void FieldValue::Empty()
  2377. {
  2378.     InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2379. }
  2380.  
  2381.  
  2382. /////////////////////////////////////////////////////////////////////////////
  2383. // FontObject properties
  2384.  
  2385. LPDISPATCH FontObject::GetApplication()
  2386. {
  2387.     LPDISPATCH result;
  2388.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  2389.     return result;
  2390. }
  2391.  
  2392. void FontObject::SetApplication(LPDISPATCH propVal)
  2393. {
  2394.     SetProperty(0x1, VT_DISPATCH, propVal);
  2395. }
  2396.  
  2397. BOOL FontObject::GetBold()
  2398. {
  2399.     BOOL result;
  2400.     GetProperty(0x2, VT_BOOL, (void*)&result);
  2401.     return result;
  2402. }
  2403.  
  2404. void FontObject::SetBold(BOOL propVal)
  2405. {
  2406.     SetProperty(0x2, VT_BOOL, propVal);
  2407. }
  2408.  
  2409. long FontObject::GetColor()
  2410. {
  2411.     long result;
  2412.     GetProperty(0x3, VT_I4, (void*)&result);
  2413.     return result;
  2414. }
  2415.  
  2416. void FontObject::SetColor(long propVal)
  2417. {
  2418.     SetProperty(0x3, VT_I4, propVal);
  2419. }
  2420.  
  2421. BOOL FontObject::GetItalic()
  2422. {
  2423.     BOOL result;
  2424.     GetProperty(0x4, VT_BOOL, (void*)&result);
  2425.     return result;
  2426. }
  2427.  
  2428. void FontObject::SetItalic(BOOL propVal)
  2429. {
  2430.     SetProperty(0x4, VT_BOOL, propVal);
  2431. }
  2432.  
  2433. CString FontObject::GetName()
  2434. {
  2435.     CString result;
  2436.     GetProperty(0x5, VT_BSTR, (void*)&result);
  2437.     return result;
  2438. }
  2439.  
  2440. void FontObject::SetName(const char* propVal)
  2441. {
  2442.     SetProperty(0x5, VT_BSTR, propVal);
  2443. }
  2444.  
  2445. BOOL FontObject::GetOpaque()
  2446. {
  2447.     BOOL result;
  2448.     GetProperty(0x6, VT_BOOL, (void*)&result);
  2449.     return result;
  2450. }
  2451.  
  2452. void FontObject::SetOpaque(BOOL propVal)
  2453. {
  2454.     SetProperty(0x6, VT_BOOL, propVal);
  2455. }
  2456.  
  2457. LPDISPATCH FontObject::GetParent()
  2458. {
  2459.     LPDISPATCH result;
  2460.     GetProperty(0x7, VT_DISPATCH, (void*)&result);
  2461.     return result;
  2462. }
  2463.  
  2464. void FontObject::SetParent(LPDISPATCH propVal)
  2465. {
  2466.     SetProperty(0x7, VT_DISPATCH, propVal);
  2467. }
  2468.  
  2469. double FontObject::GetSize()
  2470. {
  2471.     double result;
  2472.     GetProperty(0x8, VT_R8, (void*)&result);
  2473.     return result;
  2474. }
  2475.  
  2476. void FontObject::SetSize(double propVal)
  2477. {
  2478.     SetProperty(0x8, VT_R8, propVal);
  2479. }
  2480.  
  2481. BOOL FontObject::GetStrikethrough()
  2482. {
  2483.     BOOL result;
  2484.     GetProperty(0x9, VT_BOOL, (void*)&result);
  2485.     return result;
  2486. }
  2487.  
  2488. void FontObject::SetStrikethrough(BOOL propVal)
  2489. {
  2490.     SetProperty(0x9, VT_BOOL, propVal);
  2491. }
  2492.  
  2493. BOOL FontObject::GetUnderline()
  2494. {
  2495.     BOOL result;
  2496.     GetProperty(0xa, VT_BOOL, (void*)&result);
  2497.     return result;
  2498. }
  2499.  
  2500. void FontObject::SetUnderline(BOOL propVal)
  2501. {
  2502.     SetProperty(0xa, VT_BOOL, propVal);
  2503. }
  2504.  
  2505. /////////////////////////////////////////////////////////////////////////////
  2506. // FontObject operations
  2507.  
  2508.  
  2509. /////////////////////////////////////////////////////////////////////////////
  2510. // LineObject properties
  2511.  
  2512. LPDISPATCH LineObject::GetApplication()
  2513. {
  2514.     LPDISPATCH result;
  2515.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  2516.     return result;
  2517. }
  2518.  
  2519. void LineObject::SetApplication(LPDISPATCH propVal)
  2520. {
  2521.     SetProperty(0x1, VT_DISPATCH, propVal);
  2522. }
  2523.  
  2524. long LineObject::GetColor()
  2525. {
  2526.     long result;
  2527.     GetProperty(0x2, VT_I4, (void*)&result);
  2528.     return result;
  2529. }
  2530.  
  2531. void LineObject::SetColor(long propVal)
  2532. {
  2533.     SetProperty(0x2, VT_I4, propVal);
  2534. }
  2535.  
  2536. long LineObject::GetDestArrowColor()
  2537. {
  2538.     long result;
  2539.     GetProperty(0x3, VT_I4, (void*)&result);
  2540.     return result;
  2541. }
  2542.  
  2543. void LineObject::SetDestArrowColor(long propVal)
  2544. {
  2545.     SetProperty(0x3, VT_I4, propVal);
  2546. }
  2547.  
  2548. short LineObject::GetDestArrowSize()
  2549. {
  2550.     short result;
  2551.     GetProperty(0x4, VT_I2, (void*)&result);
  2552.     return result;
  2553. }
  2554.  
  2555. void LineObject::SetDestArrowSize(short propVal)
  2556. {
  2557.     SetProperty(0x4, VT_I2, propVal);
  2558. }
  2559.  
  2560. short LineObject::GetDestArrowStyle()
  2561. {
  2562.     short result;
  2563.     GetProperty(0x5, VT_I2, (void*)&result);
  2564.     return result;
  2565. }
  2566.  
  2567. void LineObject::SetDestArrowStyle(short propVal)
  2568. {
  2569.     SetProperty(0x5, VT_I2, propVal);
  2570. }
  2571.  
  2572. LPDISPATCH LineObject::GetDestination()
  2573. {
  2574.     LPDISPATCH result;
  2575.     GetProperty(0x6, VT_DISPATCH, (void*)&result);
  2576.     return result;
  2577. }
  2578.  
  2579. void LineObject::SetDestination(LPDISPATCH propVal)
  2580. {
  2581.     SetProperty(0x6, VT_DISPATCH, propVal);
  2582. }
  2583.  
  2584. short LineObject::GetDestinationDirection()
  2585. {
  2586.     short result;
  2587.     GetProperty(0x7, VT_I2, (void*)&result);
  2588.     return result;
  2589. }
  2590.  
  2591. void LineObject::SetDestinationDirection(short propVal)
  2592. {
  2593.     SetProperty(0x7, VT_I2, propVal);
  2594. }
  2595.  
  2596. LPDISPATCH LineObject::GetParent()
  2597. {
  2598.     LPDISPATCH result;
  2599.     GetProperty(0x8, VT_DISPATCH, (void*)&result);
  2600.     return result;
  2601. }
  2602.  
  2603. void LineObject::SetParent(LPDISPATCH propVal)
  2604. {
  2605.     SetProperty(0x8, VT_DISPATCH, propVal);
  2606. }
  2607.  
  2608. LPDISPATCH LineObject::GetSource()
  2609. {
  2610.     LPDISPATCH result;
  2611.     GetProperty(0x9, VT_DISPATCH, (void*)&result);
  2612.     return result;
  2613. }
  2614.  
  2615. void LineObject::SetSource(LPDISPATCH propVal)
  2616. {
  2617.     SetProperty(0x9, VT_DISPATCH, propVal);
  2618. }
  2619.  
  2620. long LineObject::GetSourceArrowColor()
  2621. {
  2622.     long result;
  2623.     GetProperty(0xa, VT_I4, (void*)&result);
  2624.     return result;
  2625. }
  2626.  
  2627. void LineObject::SetSourceArrowColor(long propVal)
  2628. {
  2629.     SetProperty(0xa, VT_I4, propVal);
  2630. }
  2631.  
  2632. short LineObject::GetSourceArrowStyle()
  2633. {
  2634.     short result;
  2635.     GetProperty(0xb, VT_I2, (void*)&result);
  2636.     return result;
  2637. }
  2638.  
  2639. void LineObject::SetSourceArrowStyle(short propVal)
  2640. {
  2641.     SetProperty(0xb, VT_I2, propVal);
  2642. }
  2643.  
  2644. short LineObject::GetSourceArrowSize()
  2645. {
  2646.     short result;
  2647.     GetProperty(0xc, VT_I2, (void*)&result);
  2648.     return result;
  2649. }
  2650.  
  2651. void LineObject::SetSourceArrowSize(short propVal)
  2652. {
  2653.     SetProperty(0xc, VT_I2, propVal);
  2654. }
  2655.  
  2656. short LineObject::GetSourceDirection()
  2657. {
  2658.     short result;
  2659.     GetProperty(0xd, VT_I2, (void*)&result);
  2660.     return result;
  2661. }
  2662.  
  2663. void LineObject::SetSourceDirection(short propVal)
  2664. {
  2665.     SetProperty(0xd, VT_I2, propVal);
  2666. }
  2667.  
  2668. long LineObject::GetStemColor()
  2669. {
  2670.     long result;
  2671.     GetProperty(0xe, VT_I4, (void*)&result);
  2672.     return result;
  2673. }
  2674.  
  2675. void LineObject::SetStemColor(long propVal)
  2676. {
  2677.     SetProperty(0xe, VT_I4, propVal);
  2678. }
  2679.  
  2680. short LineObject::GetStemStyle()
  2681. {
  2682.     short result;
  2683.     GetProperty(0xf, VT_I2, (void*)&result);
  2684.     return result;
  2685. }
  2686.  
  2687. void LineObject::SetStemStyle(short propVal)
  2688. {
  2689.     SetProperty(0xf, VT_I2, propVal);
  2690. }
  2691.  
  2692. short LineObject::GetStemWidth()
  2693. {
  2694.     short result;
  2695.     GetProperty(0x10, VT_I2, (void*)&result);
  2696.     return result;
  2697. }
  2698.  
  2699. void LineObject::SetStemWidth(short propVal)
  2700. {
  2701.     SetProperty(0x10, VT_I2, propVal);
  2702. }
  2703.  
  2704. short LineObject::GetType()
  2705. {
  2706.     short result;
  2707.     GetProperty(0x11, VT_I2, (void*)&result);
  2708.     return result;
  2709. }
  2710.  
  2711. void LineObject::SetType(short propVal)
  2712. {
  2713.     SetProperty(0x11, VT_I2, propVal);
  2714. }
  2715.  
  2716. short LineObject::GetRouting()
  2717. {
  2718.     short result;
  2719.     GetProperty(0x12, VT_I2, (void*)&result);
  2720.     return result;
  2721. }
  2722.  
  2723. void LineObject::SetRouting(short propVal)
  2724. {
  2725.     SetProperty(0x12, VT_I2, propVal);
  2726. }
  2727.  
  2728. short LineObject::GetCrossoverSize()
  2729. {
  2730.     short result;
  2731.     GetProperty(0x13, VT_I2, (void*)&result);
  2732.     return result;
  2733. }
  2734.  
  2735. void LineObject::SetCrossoverSize(short propVal)
  2736. {
  2737.     SetProperty(0x13, VT_I2, propVal);
  2738. }
  2739.  
  2740. short LineObject::GetCrossoverStyle()
  2741. {
  2742.     short result;
  2743.     GetProperty(0x14, VT_I2, (void*)&result);
  2744.     return result;
  2745. }
  2746.  
  2747. void LineObject::SetCrossoverStyle(short propVal)
  2748. {
  2749.     SetProperty(0x14, VT_I2, propVal);
  2750. }
  2751.  
  2752. /////////////////////////////////////////////////////////////////////////////
  2753. // LineObject operations
  2754.  
  2755. BOOL LineObject::AttachText(LPDISPATCH TextObject, const VARIANT& LineSegment)
  2756. {
  2757.     BOOL result;
  2758.     static BYTE BASED_CODE parms[] =
  2759.         VTS_DISPATCH VTS_VARIANT;
  2760.     InvokeHelper(0x15, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  2761.         TextObject, &LineSegment);
  2762.     return result;
  2763. }
  2764.  
  2765. BOOL LineObject::ReconnectDest(LPDISPATCH ShapeObject, const VARIANT& EnterDirection)
  2766. {
  2767.     BOOL result;
  2768.     static BYTE BASED_CODE parms[] =
  2769.         VTS_DISPATCH VTS_VARIANT;
  2770.     InvokeHelper(0x16, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  2771.         ShapeObject, &EnterDirection);
  2772.     return result;
  2773. }
  2774.  
  2775. BOOL LineObject::ReconnectSource(LPDISPATCH ShapeObject, const VARIANT& ExitDirection)
  2776. {
  2777.     BOOL result;
  2778.     static BYTE BASED_CODE parms[] =
  2779.         VTS_DISPATCH VTS_VARIANT;
  2780.     InvokeHelper(0x17, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  2781.         ShapeObject, &ExitDirection);
  2782.     return result;
  2783. }
  2784.  
  2785.  
  2786. /////////////////////////////////////////////////////////////////////////////
  2787. // MasterItems properties
  2788.  
  2789. LPDISPATCH MasterItems::GetApplication()
  2790. {
  2791.     LPDISPATCH result;
  2792.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  2793.     return result;
  2794. }
  2795.  
  2796. void MasterItems::SetApplication(LPDISPATCH propVal)
  2797. {
  2798.     SetProperty(0x1, VT_DISPATCH, propVal);
  2799. }
  2800.  
  2801. LPDISPATCH MasterItems::GetChartName()
  2802. {
  2803.     LPDISPATCH result;
  2804.     GetProperty(0x2, VT_DISPATCH, (void*)&result);
  2805.     return result;
  2806. }
  2807.  
  2808. void MasterItems::SetChartName(LPDISPATCH propVal)
  2809. {
  2810.     SetProperty(0x2, VT_DISPATCH, propVal);
  2811. }
  2812.  
  2813. BOOL MasterItems::GetChartNameShown()
  2814. {
  2815.     BOOL result;
  2816.     GetProperty(0x3, VT_BOOL, (void*)&result);
  2817.     return result;
  2818. }
  2819.  
  2820. void MasterItems::SetChartNameShown(BOOL propVal)
  2821. {
  2822.     SetProperty(0x3, VT_BOOL, propVal);
  2823. }
  2824.  
  2825. LPDISPATCH MasterItems::GetDate()
  2826. {
  2827.     LPDISPATCH result;
  2828.     GetProperty(0x4, VT_DISPATCH, (void*)&result);
  2829.     return result;
  2830. }
  2831.  
  2832. void MasterItems::SetDate(LPDISPATCH propVal)
  2833. {
  2834.     SetProperty(0x4, VT_DISPATCH, propVal);
  2835. }
  2836.  
  2837. BOOL MasterItems::GetDateShown()
  2838. {
  2839.     BOOL result;
  2840.     GetProperty(0x5, VT_BOOL, (void*)&result);
  2841.     return result;
  2842. }
  2843.  
  2844. void MasterItems::SetDateShown(BOOL propVal)
  2845. {
  2846.     SetProperty(0x5, VT_BOOL, propVal);
  2847. }
  2848.  
  2849. short MasterItems::GetDateStyle()
  2850. {
  2851.     short result;
  2852.     GetProperty(0x6, VT_I2, (void*)&result);
  2853.     return result;
  2854. }
  2855.  
  2856. void MasterItems::SetDateStyle(short propVal)
  2857. {
  2858.     SetProperty(0x6, VT_I2, propVal);
  2859. }
  2860.  
  2861. LPDISPATCH MasterItems::GetLogo()
  2862. {
  2863.     LPDISPATCH result;
  2864.     GetProperty(0x7, VT_DISPATCH, (void*)&result);
  2865.     return result;
  2866. }
  2867.  
  2868. void MasterItems::SetLogo(LPDISPATCH propVal)
  2869. {
  2870.     SetProperty(0x7, VT_DISPATCH, propVal);
  2871. }
  2872.  
  2873. BOOL MasterItems::GetLogoShown()
  2874. {
  2875.     BOOL result;
  2876.     GetProperty(0x8, VT_BOOL, (void*)&result);
  2877.     return result;
  2878. }
  2879.  
  2880. void MasterItems::SetLogoShown(BOOL propVal)
  2881. {
  2882.     SetProperty(0x8, VT_BOOL, propVal);
  2883. }
  2884.  
  2885. LPDISPATCH MasterItems::GetPageNumber()
  2886. {
  2887.     LPDISPATCH result;
  2888.     GetProperty(0x9, VT_DISPATCH, (void*)&result);
  2889.     return result;
  2890. }
  2891.  
  2892. void MasterItems::SetPageNumber(LPDISPATCH propVal)
  2893. {
  2894.     SetProperty(0x9, VT_DISPATCH, propVal);
  2895. }
  2896.  
  2897. BOOL MasterItems::GetPageNumberShown()
  2898. {
  2899.     BOOL result;
  2900.     GetProperty(0xa, VT_BOOL, (void*)&result);
  2901.     return result;
  2902. }
  2903.  
  2904. void MasterItems::SetPageNumberShown(BOOL propVal)
  2905. {
  2906.     SetProperty(0xa, VT_BOOL, propVal);
  2907. }
  2908.  
  2909. LPDISPATCH MasterItems::GetParent()
  2910. {
  2911.     LPDISPATCH result;
  2912.     GetProperty(0xb, VT_DISPATCH, (void*)&result);
  2913.     return result;
  2914. }
  2915.  
  2916. void MasterItems::SetParent(LPDISPATCH propVal)
  2917. {
  2918.     SetProperty(0xb, VT_DISPATCH, propVal);
  2919. }
  2920.  
  2921. short MasterItems::GetRange()
  2922. {
  2923.     short result;
  2924.     GetProperty(0xc, VT_I2, (void*)&result);
  2925.     return result;
  2926. }
  2927.  
  2928. void MasterItems::SetRange(short propVal)
  2929. {
  2930.     SetProperty(0xc, VT_I2, propVal);
  2931. }
  2932.  
  2933. LPDISPATCH MasterItems::GetText1()
  2934. {
  2935.     LPDISPATCH result;
  2936.     GetProperty(0xd, VT_DISPATCH, (void*)&result);
  2937.     return result;
  2938. }
  2939.  
  2940. void MasterItems::SetText1(LPDISPATCH propVal)
  2941. {
  2942.     SetProperty(0xd, VT_DISPATCH, propVal);
  2943. }
  2944.  
  2945. LPDISPATCH MasterItems::GetText2()
  2946. {
  2947.     LPDISPATCH result;
  2948.     GetProperty(0xe, VT_DISPATCH, (void*)&result);
  2949.     return result;
  2950. }
  2951.  
  2952. void MasterItems::SetText2(LPDISPATCH propVal)
  2953. {
  2954.     SetProperty(0xe, VT_DISPATCH, propVal);
  2955. }
  2956.  
  2957. BOOL MasterItems::GetText1Shown()
  2958. {
  2959.     BOOL result;
  2960.     GetProperty(0xf, VT_BOOL, (void*)&result);
  2961.     return result;
  2962. }
  2963.  
  2964. void MasterItems::SetText1Shown(BOOL propVal)
  2965. {
  2966.     SetProperty(0xf, VT_BOOL, propVal);
  2967. }
  2968.  
  2969. BOOL MasterItems::GetText2Shown()
  2970. {
  2971.     BOOL result;
  2972.     GetProperty(0x10, VT_BOOL, (void*)&result);
  2973.     return result;
  2974. }
  2975.  
  2976. void MasterItems::SetText2Shown(BOOL propVal)
  2977. {
  2978.     SetProperty(0x10, VT_BOOL, propVal);
  2979. }
  2980.  
  2981. LPDISPATCH MasterItems::GetTime()
  2982. {
  2983.     LPDISPATCH result;
  2984.     GetProperty(0x11, VT_DISPATCH, (void*)&result);
  2985.     return result;
  2986. }
  2987.  
  2988. void MasterItems::SetTime(LPDISPATCH propVal)
  2989. {
  2990.     SetProperty(0x11, VT_DISPATCH, propVal);
  2991. }
  2992.  
  2993. BOOL MasterItems::GetTimeShown()
  2994. {
  2995.     BOOL result;
  2996.     GetProperty(0x12, VT_BOOL, (void*)&result);
  2997.     return result;
  2998. }
  2999.  
  3000. void MasterItems::SetTimeShown(BOOL propVal)
  3001. {
  3002.     SetProperty(0x12, VT_BOOL, propVal);
  3003. }
  3004.  
  3005. CString MasterItems::GetLogoPathname()
  3006. {
  3007.     CString result;
  3008.     GetProperty(0x13, VT_BSTR, (void*)&result);
  3009.     return result;
  3010. }
  3011.  
  3012. void MasterItems::SetLogoPathname(const char* propVal)
  3013. {
  3014.     SetProperty(0x13, VT_BSTR, propVal);
  3015. }
  3016.  
  3017. /////////////////////////////////////////////////////////////////////////////
  3018. // MasterItems operations
  3019.  
  3020. void MasterItems::HideAll()
  3021. {
  3022.     InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3023. }
  3024.  
  3025. void MasterItems::ShowAll()
  3026. {
  3027.     InvokeHelper(0x15, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3028. }
  3029.  
  3030. void MasterItems::UpdateDateAndTime(const VARIANT& Date, const VARIANT& Time)
  3031. {
  3032.     static BYTE BASED_CODE parms[] =
  3033.         VTS_VARIANT VTS_VARIANT;
  3034.     InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3035.          &Date, &Time);
  3036. }
  3037.  
  3038.  
  3039. /////////////////////////////////////////////////////////////////////////////
  3040. // MenuObject properties
  3041.  
  3042. LPDISPATCH MenuObject::GetApplication()
  3043. {
  3044.     LPDISPATCH result;
  3045.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  3046.     return result;
  3047. }
  3048.  
  3049. void MenuObject::SetApplication(LPDISPATCH propVal)
  3050. {
  3051.     SetProperty(0x1, VT_DISPATCH, propVal);
  3052. }
  3053.  
  3054. long MenuObject::GetCount()
  3055. {
  3056.     long result;
  3057.     GetProperty(0x2, VT_I4, (void*)&result);
  3058.     return result;
  3059. }
  3060.  
  3061. void MenuObject::SetCount(long propVal)
  3062. {
  3063.     SetProperty(0x2, VT_I4, propVal);
  3064. }
  3065.  
  3066. LPDISPATCH MenuObject::GetParent()
  3067. {
  3068.     LPDISPATCH result;
  3069.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  3070.     return result;
  3071. }
  3072.  
  3073. void MenuObject::SetParent(LPDISPATCH propVal)
  3074. {
  3075.     SetProperty(0x3, VT_DISPATCH, propVal);
  3076. }
  3077.  
  3078. CString MenuObject::GetText()
  3079. {
  3080.     CString result;
  3081.     GetProperty(0x4, VT_BSTR, (void*)&result);
  3082.     return result;
  3083. }
  3084.  
  3085. void MenuObject::SetText(const char* propVal)
  3086. {
  3087.     SetProperty(0x4, VT_BSTR, propVal);
  3088. }
  3089.  
  3090. BOOL MenuObject::GetVisible()
  3091. {
  3092.     BOOL result;
  3093.     GetProperty(0x5, VT_BOOL, (void*)&result);
  3094.     return result;
  3095. }
  3096.  
  3097. void MenuObject::SetVisible(BOOL propVal)
  3098. {
  3099.     SetProperty(0x5, VT_BOOL, propVal);
  3100. }
  3101.  
  3102. /////////////////////////////////////////////////////////////////////////////
  3103. // MenuObject operations
  3104.  
  3105. LPDISPATCH MenuObject::AppendItem(const char* ItemName)
  3106. {
  3107.     LPDISPATCH result;
  3108.     static BYTE BASED_CODE parms[] =
  3109.         VTS_BSTR;
  3110.     InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3111.         ItemName);
  3112.     return result;
  3113. }
  3114.  
  3115. void MenuObject::DeleteAll()
  3116. {
  3117.     InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3118. }
  3119.  
  3120. void MenuObject::DeleteItem(LPDISPATCH MenuItem)
  3121. {
  3122.     static BYTE BASED_CODE parms[] =
  3123.         VTS_DISPATCH;
  3124.     InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3125.          MenuItem);
  3126. }
  3127.  
  3128. LPDISPATCH MenuObject::InsertItem(const char* ItemName, const VARIANT& PreviousItemOrPos)
  3129. {
  3130.     LPDISPATCH result;
  3131.     static BYTE BASED_CODE parms[] =
  3132.         VTS_BSTR VTS_VARIANT;
  3133.     InvokeHelper(0x9, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3134.         ItemName, &PreviousItemOrPos);
  3135.     return result;
  3136. }
  3137.  
  3138. LPDISPATCH MenuObject::GetItem(const VARIANT& ItemTextOrPostion)
  3139. {
  3140.     LPDISPATCH result;
  3141.     static BYTE BASED_CODE parms[] =
  3142.         VTS_VARIANT;
  3143.     InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3144.         &ItemTextOrPostion);
  3145.     return result;
  3146. }
  3147.  
  3148.  
  3149. /////////////////////////////////////////////////////////////////////////////
  3150. // MenuItem properties
  3151.  
  3152. LPDISPATCH MenuItem::GetApplication()
  3153. {
  3154.     LPDISPATCH result;
  3155.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  3156.     return result;
  3157. }
  3158.  
  3159. void MenuItem::SetApplication(LPDISPATCH propVal)
  3160. {
  3161.     SetProperty(0x1, VT_DISPATCH, propVal);
  3162. }
  3163.  
  3164. BOOL MenuItem::GetChecked()
  3165. {
  3166.     BOOL result;
  3167.     GetProperty(0x2, VT_BOOL, (void*)&result);
  3168.     return result;
  3169. }
  3170.  
  3171. void MenuItem::SetChecked(BOOL propVal)
  3172. {
  3173.     SetProperty(0x2, VT_BOOL, propVal);
  3174. }
  3175.  
  3176. BOOL MenuItem::GetEnabled()
  3177. {
  3178.     BOOL result;
  3179.     GetProperty(0x3, VT_BOOL, (void*)&result);
  3180.     return result;
  3181. }
  3182.  
  3183. void MenuItem::SetEnabled(BOOL propVal)
  3184. {
  3185.     SetProperty(0x3, VT_BOOL, propVal);
  3186. }
  3187.  
  3188. LPDISPATCH MenuItem::GetParent()
  3189. {
  3190.     LPDISPATCH result;
  3191.     GetProperty(0x4, VT_DISPATCH, (void*)&result);
  3192.     return result;
  3193. }
  3194.  
  3195. void MenuItem::SetParent(LPDISPATCH propVal)
  3196. {
  3197.     SetProperty(0x4, VT_DISPATCH, propVal);
  3198. }
  3199.  
  3200. CString MenuItem::GetText()
  3201. {
  3202.     CString result;
  3203.     GetProperty(0x5, VT_BSTR, (void*)&result);
  3204.     return result;
  3205. }
  3206.  
  3207. void MenuItem::SetText(const char* propVal)
  3208. {
  3209.     SetProperty(0x5, VT_BSTR, propVal);
  3210. }
  3211.  
  3212. /////////////////////////////////////////////////////////////////////////////
  3213. // MenuItem operations
  3214.  
  3215.  
  3216. /////////////////////////////////////////////////////////////////////////////
  3217. // Objects properties
  3218.  
  3219. LPDISPATCH Objects::GetApplication()
  3220. {
  3221.     LPDISPATCH result;
  3222.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  3223.     return result;
  3224. }
  3225.  
  3226. void Objects::SetApplication(LPDISPATCH propVal)
  3227. {
  3228.     SetProperty(0x1, VT_DISPATCH, propVal);
  3229. }
  3230.  
  3231. long Objects::GetCount()
  3232. {
  3233.     long result;
  3234.     GetProperty(0x2, VT_I4, (void*)&result);
  3235.     return result;
  3236. }
  3237.  
  3238. void Objects::SetCount(long propVal)
  3239. {
  3240.     SetProperty(0x2, VT_I4, propVal);
  3241. }
  3242.  
  3243. LPDISPATCH Objects::GetParent()
  3244. {
  3245.     LPDISPATCH result;
  3246.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  3247.     return result;
  3248. }
  3249.  
  3250. void Objects::SetParent(LPDISPATCH propVal)
  3251. {
  3252.     SetProperty(0x3, VT_DISPATCH, propVal);
  3253. }
  3254.  
  3255. /////////////////////////////////////////////////////////////////////////////
  3256. // Objects operations
  3257.  
  3258. LPDISPATCH Objects::Item(long Count)
  3259. {
  3260.     LPDISPATCH result;
  3261.     static BYTE BASED_CODE parms[] =
  3262.         VTS_I4;
  3263.     InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3264.         Count);
  3265.     return result;
  3266. }
  3267.  
  3268. LPDISPATCH Objects::ItemFromAll()
  3269. {
  3270.     LPDISPATCH result;
  3271.     InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  3272.     return result;
  3273. }
  3274.  
  3275. LPDISPATCH Objects::ItemFromAttachments(LPDISPATCH ObjectWithAttach1, LPDISPATCH ObjectWithAttach2)
  3276. {
  3277.     LPDISPATCH result;
  3278.     static BYTE BASED_CODE parms[] =
  3279.         VTS_DISPATCH VTS_DISPATCH;
  3280.     InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3281.         ObjectWithAttach1, ObjectWithAttach2);
  3282.     return result;
  3283. }
  3284.  
  3285. LPDISPATCH Objects::ItemFromFieldValue(LPDISPATCH FieldTemplateObject, const VARIANT& Value)
  3286. {
  3287.     LPDISPATCH result;
  3288.     static BYTE BASED_CODE parms[] =
  3289.         VTS_DISPATCH VTS_VARIANT;
  3290.     InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3291.         FieldTemplateObject, &Value);
  3292.     return result;
  3293. }
  3294.  
  3295. LPDISPATCH Objects::ItemFromLines()
  3296. {
  3297.     LPDISPATCH result;
  3298.     InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  3299.     return result;
  3300. }
  3301.  
  3302. LPDISPATCH Objects::ItemFromShapes()
  3303. {
  3304.     LPDISPATCH result;
  3305.     InvokeHelper(0x9, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  3306.     return result;
  3307. }
  3308.  
  3309. LPDISPATCH Objects::ItemFromSelection()
  3310. {
  3311.     LPDISPATCH result;
  3312.     InvokeHelper(0xa, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  3313.     return result;
  3314. }
  3315.  
  3316. LPDISPATCH Objects::ItemFromNumber(const VARIANT& Value)
  3317. {
  3318.     LPDISPATCH result;
  3319.     static BYTE BASED_CODE parms[] =
  3320.         VTS_VARIANT;
  3321.     InvokeHelper(0xb, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3322.         &Value);
  3323.     return result;
  3324. }
  3325.  
  3326. LPDISPATCH Objects::ItemFromText(const char* Text)
  3327. {
  3328.     LPDISPATCH result;
  3329.     static BYTE BASED_CODE parms[] =
  3330.         VTS_BSTR;
  3331.     InvokeHelper(0xc, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3332.         Text);
  3333.     return result;
  3334. }
  3335.  
  3336. LPDISPATCH Objects::ItemFromUniqueID(long UniqueID)
  3337. {
  3338.     LPDISPATCH result;
  3339.     static BYTE BASED_CODE parms[] =
  3340.         VTS_I4;
  3341.     InvokeHelper(0xd, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3342.         UniqueID);
  3343.     return result;
  3344. }
  3345.  
  3346. void Objects::ResetSearch()
  3347. {
  3348.     InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3349. }
  3350.  
  3351.  
  3352. /////////////////////////////////////////////////////////////////////////////
  3353. // Object properties
  3354.  
  3355. LPDISPATCH Object::GetApplication()
  3356. {
  3357.     LPDISPATCH result;
  3358.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  3359.     return result;
  3360. }
  3361.  
  3362. void Object::SetApplication(LPDISPATCH propVal)
  3363. {
  3364.     SetProperty(0x1, VT_DISPATCH, propVal);
  3365. }
  3366.  
  3367. double Object::GetBottom()
  3368. {
  3369.     double result;
  3370.     GetProperty(0x2, VT_R8, (void*)&result);
  3371.     return result;
  3372. }
  3373.  
  3374. void Object::SetBottom(double propVal)
  3375. {
  3376.     SetProperty(0x2, VT_R8, propVal);
  3377. }
  3378.  
  3379. double Object::GetCenterX()
  3380. {
  3381.     double result;
  3382.     GetProperty(0x3, VT_R8, (void*)&result);
  3383.     return result;
  3384. }
  3385.  
  3386. void Object::SetCenterX(double propVal)
  3387. {
  3388.     SetProperty(0x3, VT_R8, propVal);
  3389. }
  3390.  
  3391. double Object::GetCenterY()
  3392. {
  3393.     double result;
  3394.     GetProperty(0x4, VT_R8, (void*)&result);
  3395.     return result;
  3396. }
  3397.  
  3398. void Object::SetCenterY(double propVal)
  3399. {
  3400.     SetProperty(0x4, VT_R8, propVal);
  3401. }
  3402.  
  3403. long Object::GetColor()
  3404. {
  3405.     long result;
  3406.     GetProperty(0x5, VT_I4, (void*)&result);
  3407.     return result;
  3408. }
  3409.  
  3410. void Object::SetColor(long propVal)
  3411. {
  3412.     SetProperty(0x5, VT_I4, propVal);
  3413. }
  3414.  
  3415. LPDISPATCH Object::GetFieldValues()
  3416. {
  3417.     LPDISPATCH result;
  3418.     GetProperty(0x6, VT_DISPATCH, (void*)&result);
  3419.     return result;
  3420. }
  3421.  
  3422. void Object::SetFieldValues(LPDISPATCH propVal)
  3423. {
  3424.     SetProperty(0x6, VT_DISPATCH, propVal);
  3425. }
  3426.  
  3427. LPDISPATCH Object::GetFont()
  3428. {
  3429.     LPDISPATCH result;
  3430.     GetProperty(0x7, VT_DISPATCH, (void*)&result);
  3431.     return result;
  3432. }
  3433.  
  3434. void Object::SetFont(LPDISPATCH propVal)
  3435. {
  3436.     SetProperty(0x7, VT_DISPATCH, propVal);
  3437. }
  3438.  
  3439. double Object::GetHeight()
  3440. {
  3441.     double result;
  3442.     GetProperty(0x8, VT_R8, (void*)&result);
  3443.     return result;
  3444. }
  3445.  
  3446. void Object::SetHeight(double propVal)
  3447. {
  3448.     SetProperty(0x8, VT_R8, propVal);
  3449. }
  3450.  
  3451. double Object::GetLeft()
  3452. {
  3453.     double result;
  3454.     GetProperty(0x9, VT_R8, (void*)&result);
  3455.     return result;
  3456. }
  3457.  
  3458. void Object::SetLeft(double propVal)
  3459. {
  3460.     SetProperty(0x9, VT_R8, propVal);
  3461. }
  3462.  
  3463. LPDISPATCH Object::GetLine()
  3464. {
  3465.     LPDISPATCH result;
  3466.     GetProperty(0xa, VT_DISPATCH, (void*)&result);
  3467.     return result;
  3468. }
  3469.  
  3470. void Object::SetLine(LPDISPATCH propVal)
  3471. {
  3472.     SetProperty(0xa, VT_DISPATCH, propVal);
  3473. }
  3474.  
  3475. LPDISPATCH Object::GetOle()
  3476. {
  3477.     LPDISPATCH result;
  3478.     GetProperty(0xb, VT_DISPATCH, (void*)&result);
  3479.     return result;
  3480. }
  3481.  
  3482. void Object::SetOle(LPDISPATCH propVal)
  3483. {
  3484.     SetProperty(0xb, VT_DISPATCH, propVal);
  3485. }
  3486.  
  3487. LPDISPATCH Object::GetParent()
  3488. {
  3489.     LPDISPATCH result;
  3490.     GetProperty(0xc, VT_DISPATCH, (void*)&result);
  3491.     return result;
  3492. }
  3493.  
  3494. void Object::SetParent(LPDISPATCH propVal)
  3495. {
  3496.     SetProperty(0xc, VT_DISPATCH, propVal);
  3497. }
  3498.  
  3499. double Object::GetRight()
  3500. {
  3501.     double result;
  3502.     GetProperty(0xd, VT_R8, (void*)&result);
  3503.     return result;
  3504. }
  3505.  
  3506. void Object::SetRight(double propVal)
  3507. {
  3508.     SetProperty(0xd, VT_R8, propVal);
  3509. }
  3510.  
  3511. BOOL Object::GetSelected()
  3512. {
  3513.     BOOL result;
  3514.     GetProperty(0xe, VT_BOOL, (void*)&result);
  3515.     return result;
  3516. }
  3517.  
  3518. void Object::SetSelected(BOOL propVal)
  3519. {
  3520.     SetProperty(0xe, VT_BOOL, propVal);
  3521. }
  3522.  
  3523. LPDISPATCH Object::GetShape()
  3524. {
  3525.     LPDISPATCH result;
  3526.     GetProperty(0xf, VT_DISPATCH, (void*)&result);
  3527.     return result;
  3528. }
  3529.  
  3530. void Object::SetShape(LPDISPATCH propVal)
  3531. {
  3532.     SetProperty(0xf, VT_DISPATCH, propVal);
  3533. }
  3534.  
  3535. short Object::GetStretchType()
  3536. {
  3537.     short result;
  3538.     GetProperty(0x10, VT_I2, (void*)&result);
  3539.     return result;
  3540. }
  3541.  
  3542. void Object::SetStretchType(short propVal)
  3543. {
  3544.     SetProperty(0x10, VT_I2, propVal);
  3545. }
  3546.  
  3547. CString Object::GetText()
  3548. {
  3549.     CString result;
  3550.     GetProperty(0x11, VT_BSTR, (void*)&result);
  3551.     return result;
  3552. }
  3553.  
  3554. void Object::SetText(const char* propVal)
  3555. {
  3556.     SetProperty(0x11, VT_BSTR, propVal);
  3557. }
  3558.  
  3559. CString Object::GetTextLF()
  3560. {
  3561.     CString result;
  3562.     GetProperty(0x12, VT_BSTR, (void*)&result);
  3563.     return result;
  3564. }
  3565.  
  3566. void Object::SetTextLF(const char* propVal)
  3567. {
  3568.     SetProperty(0x12, VT_BSTR, propVal);
  3569. }
  3570.  
  3571. short Object::GetTextAlignment()
  3572. {
  3573.     short result;
  3574.     GetProperty(0x13, VT_I2, (void*)&result);
  3575.     return result;
  3576. }
  3577.  
  3578. void Object::SetTextAlignment(short propVal)
  3579. {
  3580.     SetProperty(0x13, VT_I2, propVal);
  3581. }
  3582.  
  3583. LPDISPATCH Object::GetTextBlock()
  3584. {
  3585.     LPDISPATCH result;
  3586.     GetProperty(0x14, VT_DISPATCH, (void*)&result);
  3587.     return result;
  3588. }
  3589.  
  3590. void Object::SetTextBlock(LPDISPATCH propVal)
  3591. {
  3592.     SetProperty(0x14, VT_DISPATCH, propVal);
  3593. }
  3594.  
  3595. double Object::GetTop()
  3596. {
  3597.     double result;
  3598.     GetProperty(0x15, VT_R8, (void*)&result);
  3599.     return result;
  3600. }
  3601.  
  3602. void Object::SetTop(double propVal)
  3603. {
  3604.     SetProperty(0x15, VT_R8, propVal);
  3605. }
  3606.  
  3607. short Object::GetType()
  3608. {
  3609.     short result;
  3610.     GetProperty(0x16, VT_I2, (void*)&result);
  3611.     return result;
  3612. }
  3613.  
  3614. void Object::SetType(short propVal)
  3615. {
  3616.     SetProperty(0x16, VT_I2, propVal);
  3617. }
  3618.  
  3619. long Object::GetUniqueID()
  3620. {
  3621.     long result;
  3622.     GetProperty(0x17, VT_I4, (void*)&result);
  3623.     return result;
  3624. }
  3625.  
  3626. void Object::SetUniqueID(long propVal)
  3627. {
  3628.     SetProperty(0x17, VT_I4, propVal);
  3629. }
  3630.  
  3631. BOOL Object::GetValid()
  3632. {
  3633.     BOOL result;
  3634.     GetProperty(0x18, VT_BOOL, (void*)&result);
  3635.     return result;
  3636. }
  3637.  
  3638. void Object::SetValid(BOOL propVal)
  3639. {
  3640.     SetProperty(0x18, VT_BOOL, propVal);
  3641. }
  3642.  
  3643. double Object::GetWidth()
  3644. {
  3645.     double result;
  3646.     GetProperty(0x19, VT_R8, (void*)&result);
  3647.     return result;
  3648. }
  3649.  
  3650. void Object::SetWidth(double propVal)
  3651. {
  3652.     SetProperty(0x19, VT_R8, propVal);
  3653. }
  3654.  
  3655. BOOL Object::GetFlippedVertical()
  3656. {
  3657.     BOOL result;
  3658.     GetProperty(0x1a, VT_BOOL, (void*)&result);
  3659.     return result;
  3660. }
  3661.  
  3662. void Object::SetFlippedVertical(BOOL propVal)
  3663. {
  3664.     SetProperty(0x1a, VT_BOOL, propVal);
  3665. }
  3666.  
  3667. BOOL Object::GetFlippedHorizontal()
  3668. {
  3669.     BOOL result;
  3670.     GetProperty(0x1b, VT_BOOL, (void*)&result);
  3671.     return result;
  3672. }
  3673.  
  3674. void Object::SetFlippedHorizontal(BOOL propVal)
  3675. {
  3676.     SetProperty(0x1b, VT_BOOL, propVal);
  3677. }
  3678.  
  3679. short Object::GetRotation()
  3680. {
  3681.     short result;
  3682.     GetProperty(0x1c, VT_I2, (void*)&result);
  3683.     return result;
  3684. }
  3685.  
  3686. void Object::SetRotation(short propVal)
  3687. {
  3688.     SetProperty(0x1c, VT_I2, propVal);
  3689. }
  3690.  
  3691. LPDISPATCH Object::GetLine_()
  3692. {
  3693.     LPDISPATCH result;
  3694.     GetProperty(0x1d, VT_DISPATCH, (void*)&result);
  3695.     return result;
  3696. }
  3697.  
  3698. void Object::SetLine_(LPDISPATCH propVal)
  3699. {
  3700.     SetProperty(0x1d, VT_DISPATCH, propVal);
  3701. }
  3702.  
  3703. /////////////////////////////////////////////////////////////////////////////
  3704. // Object operations
  3705.  
  3706. BOOL Object::Clear()
  3707. {
  3708.     BOOL result;
  3709.     InvokeHelper(0x1e, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  3710.     return result;
  3711. }
  3712.  
  3713. LPDISPATCH Object::Duplicate()
  3714. {
  3715.     LPDISPATCH result;
  3716.     InvokeHelper(0x1f, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  3717.     return result;
  3718. }
  3719.  
  3720. void Object::Repaint()
  3721. {
  3722.     InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3723. }
  3724.  
  3725. void Object::RestorePicture()
  3726. {
  3727.     InvokeHelper(0x21, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3728. }
  3729.  
  3730. void Object::ToBack()
  3731. {
  3732.     InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3733. }
  3734.  
  3735. void Object::ToFront()
  3736. {
  3737.     InvokeHelper(0x23, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3738. }
  3739.  
  3740. void Object::ApplyDefaults()
  3741. {
  3742.     InvokeHelper(0x24, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3743. }
  3744.  
  3745. BOOL Object::Clear_()
  3746. {
  3747.     BOOL result;
  3748.     InvokeHelper(0x25, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  3749.     return result;
  3750. }
  3751.  
  3752.  
  3753. /////////////////////////////////////////////////////////////////////////////
  3754. // OLEObject properties
  3755.  
  3756. LPDISPATCH OLEObject::GetApplication()
  3757. {
  3758.     LPDISPATCH result;
  3759.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  3760.     return result;
  3761. }
  3762.  
  3763. void OLEObject::SetApplication(LPDISPATCH propVal)
  3764. {
  3765.     SetProperty(0x1, VT_DISPATCH, propVal);
  3766. }
  3767.  
  3768. CString OLEObject::GetObjectType()
  3769. {
  3770.     CString result;
  3771.     GetProperty(0x2, VT_BSTR, (void*)&result);
  3772.     return result;
  3773. }
  3774.  
  3775. void OLEObject::SetObjectType(const char* propVal)
  3776. {
  3777.     SetProperty(0x2, VT_BSTR, propVal);
  3778. }
  3779.  
  3780. LPDISPATCH OLEObject::GetParent()
  3781. {
  3782.     LPDISPATCH result;
  3783.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  3784.     return result;
  3785. }
  3786.  
  3787. void OLEObject::SetParent(LPDISPATCH propVal)
  3788. {
  3789.     SetProperty(0x3, VT_DISPATCH, propVal);
  3790. }
  3791.  
  3792. /////////////////////////////////////////////////////////////////////////////
  3793. // OLEObject operations
  3794.  
  3795. void OLEObject::DoVerb(const VARIANT& Verb)
  3796. {
  3797.     static BYTE BASED_CODE parms[] =
  3798.         VTS_VARIANT;
  3799.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3800.          &Verb);
  3801. }
  3802.  
  3803. void OLEObject::RestorePicture()
  3804. {
  3805.     InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3806. }
  3807.  
  3808.  
  3809. /////////////////////////////////////////////////////////////////////////////
  3810. // PageLayout properties
  3811.  
  3812. LPDISPATCH PageLayout::GetApplication()
  3813. {
  3814.     LPDISPATCH result;
  3815.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  3816.     return result;
  3817. }
  3818.  
  3819. void PageLayout::SetApplication(LPDISPATCH propVal)
  3820. {
  3821.     SetProperty(0x1, VT_DISPATCH, propVal);
  3822. }
  3823.  
  3824. double PageLayout::GetHeight()
  3825. {
  3826.     double result;
  3827.     GetProperty(0x2, VT_R8, (void*)&result);
  3828.     return result;
  3829. }
  3830.  
  3831. void PageLayout::SetHeight(double propVal)
  3832. {
  3833.     SetProperty(0x2, VT_R8, propVal);
  3834. }
  3835.  
  3836. double PageLayout::GetMarginBottom()
  3837. {
  3838.     double result;
  3839.     GetProperty(0x3, VT_R8, (void*)&result);
  3840.     return result;
  3841. }
  3842.  
  3843. void PageLayout::SetMarginBottom(double propVal)
  3844. {
  3845.     SetProperty(0x3, VT_R8, propVal);
  3846. }
  3847.  
  3848. double PageLayout::GetMarginLeft()
  3849. {
  3850.     double result;
  3851.     GetProperty(0x4, VT_R8, (void*)&result);
  3852.     return result;
  3853. }
  3854.  
  3855. void PageLayout::SetMarginLeft(double propVal)
  3856. {
  3857.     SetProperty(0x4, VT_R8, propVal);
  3858. }
  3859.  
  3860. double PageLayout::GetMarginRight()
  3861. {
  3862.     double result;
  3863.     GetProperty(0x5, VT_R8, (void*)&result);
  3864.     return result;
  3865. }
  3866.  
  3867. void PageLayout::SetMarginRight(double propVal)
  3868. {
  3869.     SetProperty(0x5, VT_R8, propVal);
  3870. }
  3871.  
  3872. double PageLayout::GetMarginTop()
  3873. {
  3874.     double result;
  3875.     GetProperty(0x6, VT_R8, (void*)&result);
  3876.     return result;
  3877. }
  3878.  
  3879. void PageLayout::SetMarginTop(double propVal)
  3880. {
  3881.     SetProperty(0x6, VT_R8, propVal);
  3882. }
  3883.  
  3884. short PageLayout::GetOrientation()
  3885. {
  3886.     short result;
  3887.     GetProperty(0x7, VT_I2, (void*)&result);
  3888.     return result;
  3889. }
  3890.  
  3891. void PageLayout::SetOrientation(short propVal)
  3892. {
  3893.     SetProperty(0x7, VT_I2, propVal);
  3894. }
  3895.  
  3896. double PageLayout::GetPageHeight()
  3897. {
  3898.     double result;
  3899.     GetProperty(0x8, VT_R8, (void*)&result);
  3900.     return result;
  3901. }
  3902.  
  3903. void PageLayout::SetPageHeight(double propVal)
  3904. {
  3905.     SetProperty(0x8, VT_R8, propVal);
  3906. }
  3907.  
  3908. double PageLayout::GetPageWidth()
  3909. {
  3910.     double result;
  3911.     GetProperty(0x9, VT_R8, (void*)&result);
  3912.     return result;
  3913. }
  3914.  
  3915. void PageLayout::SetPageWidth(double propVal)
  3916. {
  3917.     SetProperty(0x9, VT_R8, propVal);
  3918. }
  3919.  
  3920. short PageLayout::GetPageOrder()
  3921. {
  3922.     short result;
  3923.     GetProperty(0xa, VT_I2, (void*)&result);
  3924.     return result;
  3925. }
  3926.  
  3927. void PageLayout::SetPageOrder(short propVal)
  3928. {
  3929.     SetProperty(0xa, VT_I2, propVal);
  3930. }
  3931.  
  3932. CString PageLayout::GetPaperSize()
  3933. {
  3934.     CString result;
  3935.     GetProperty(0xb, VT_BSTR, (void*)&result);
  3936.     return result;
  3937. }
  3938.  
  3939. void PageLayout::SetPaperSize(const char* propVal)
  3940. {
  3941.     SetProperty(0xb, VT_BSTR, propVal);
  3942. }
  3943.  
  3944. LPDISPATCH PageLayout::GetParent()
  3945. {
  3946.     LPDISPATCH result;
  3947.     GetProperty(0xc, VT_DISPATCH, (void*)&result);
  3948.     return result;
  3949. }
  3950.  
  3951. void PageLayout::SetParent(LPDISPATCH propVal)
  3952. {
  3953.     SetProperty(0xc, VT_DISPATCH, propVal);
  3954. }
  3955.  
  3956. BOOL PageLayout::GetPrintBlankPages()
  3957. {
  3958.     BOOL result;
  3959.     GetProperty(0xd, VT_BOOL, (void*)&result);
  3960.     return result;
  3961. }
  3962.  
  3963. void PageLayout::SetPrintBlankPages(BOOL propVal)
  3964. {
  3965.     SetProperty(0xd, VT_BOOL, propVal);
  3966. }
  3967.  
  3968. double PageLayout::GetWidth()
  3969. {
  3970.     double result;
  3971.     GetProperty(0xe, VT_R8, (void*)&result);
  3972.     return result;
  3973. }
  3974.  
  3975. void PageLayout::SetWidth(double propVal)
  3976. {
  3977.     SetProperty(0xe, VT_R8, propVal);
  3978. }
  3979.  
  3980. /////////////////////////////////////////////////////////////////////////////
  3981. // PageLayout operations
  3982.  
  3983.  
  3984. /////////////////////////////////////////////////////////////////////////////
  3985. // Preferences properties
  3986.  
  3987. short Preferences::GetAlignToRulers()
  3988. {
  3989.     short result;
  3990.     GetProperty(0x1, VT_I2, (void*)&result);
  3991.     return result;
  3992. }
  3993.  
  3994. void Preferences::SetAlignToRulers(short propVal)
  3995. {
  3996.     SetProperty(0x1, VT_I2, propVal);
  3997. }
  3998.  
  3999. LPDISPATCH Preferences::GetApplication()
  4000. {
  4001.     LPDISPATCH result;
  4002.     GetProperty(0x2, VT_DISPATCH, (void*)&result);
  4003.     return result;
  4004. }
  4005.  
  4006. void Preferences::SetApplication(LPDISPATCH propVal)
  4007. {
  4008.     SetProperty(0x2, VT_DISPATCH, propVal);
  4009. }
  4010.  
  4011. BOOL Preferences::GetChannelAlignment()
  4012. {
  4013.     BOOL result;
  4014.     GetProperty(0x3, VT_BOOL, (void*)&result);
  4015.     return result;
  4016. }
  4017.  
  4018. void Preferences::SetChannelAlignment(BOOL propVal)
  4019. {
  4020.     SetProperty(0x3, VT_BOOL, propVal);
  4021. }
  4022.  
  4023. double Preferences::GetLineSpacingX()
  4024. {
  4025.     double result;
  4026.     GetProperty(0x4, VT_R8, (void*)&result);
  4027.     return result;
  4028. }
  4029.  
  4030. void Preferences::SetLineSpacingX(double propVal)
  4031. {
  4032.     SetProperty(0x4, VT_R8, propVal);
  4033. }
  4034.  
  4035. double Preferences::GetLineSpacingY()
  4036. {
  4037.     double result;
  4038.     GetProperty(0x5, VT_R8, (void*)&result);
  4039.     return result;
  4040. }
  4041.  
  4042. void Preferences::SetLineSpacingY(double propVal)
  4043. {
  4044.     SetProperty(0x5, VT_R8, propVal);
  4045. }
  4046.  
  4047. LPDISPATCH Preferences::GetParent()
  4048. {
  4049.     LPDISPATCH result;
  4050.     GetProperty(0x6, VT_DISPATCH, (void*)&result);
  4051.     return result;
  4052. }
  4053.  
  4054. void Preferences::SetParent(LPDISPATCH propVal)
  4055. {
  4056.     SetProperty(0x6, VT_DISPATCH, propVal);
  4057. }
  4058.  
  4059. short Preferences::GetShapeSizing()
  4060. {
  4061.     short result;
  4062.     GetProperty(0x7, VT_I2, (void*)&result);
  4063.     return result;
  4064. }
  4065.  
  4066. void Preferences::SetShapeSizing(short propVal)
  4067. {
  4068.     SetProperty(0x7, VT_I2, propVal);
  4069. }
  4070.  
  4071. BOOL Preferences::GetShowRulers()
  4072. {
  4073.     BOOL result;
  4074.     GetProperty(0x8, VT_BOOL, (void*)&result);
  4075.     return result;
  4076. }
  4077.  
  4078. void Preferences::SetShowRulers(BOOL propVal)
  4079. {
  4080.     SetProperty(0x8, VT_BOOL, propVal);
  4081. }
  4082.  
  4083. BOOL Preferences::GetSmartShapeSpacing()
  4084. {
  4085.     BOOL result;
  4086.     GetProperty(0x9, VT_BOOL, (void*)&result);
  4087.     return result;
  4088. }
  4089.  
  4090. void Preferences::SetSmartShapeSpacing(BOOL propVal)
  4091. {
  4092.     SetProperty(0x9, VT_BOOL, propVal);
  4093. }
  4094.  
  4095. double Preferences::GetSSSHorizontal()
  4096. {
  4097.     double result;
  4098.     GetProperty(0xa, VT_R8, (void*)&result);
  4099.     return result;
  4100. }
  4101.  
  4102. void Preferences::SetSSSHorizontal(double propVal)
  4103. {
  4104.     SetProperty(0xa, VT_R8, propVal);
  4105. }
  4106.  
  4107. double Preferences::GetSSSVertical()
  4108. {
  4109.     double result;
  4110.     GetProperty(0xb, VT_R8, (void*)&result);
  4111.     return result;
  4112. }
  4113.  
  4114. void Preferences::SetSSSVertical(double propVal)
  4115. {
  4116.     SetProperty(0xb, VT_R8, propVal);
  4117. }
  4118.  
  4119. BOOL Preferences::GetTouchAlignment()
  4120. {
  4121.     BOOL result;
  4122.     GetProperty(0xc, VT_BOOL, (void*)&result);
  4123.     return result;
  4124. }
  4125.  
  4126. void Preferences::SetTouchAlignment(BOOL propVal)
  4127. {
  4128.     SetProperty(0xc, VT_BOOL, propVal);
  4129. }
  4130.  
  4131. short Preferences::GetUnits()
  4132. {
  4133.     short result;
  4134.     GetProperty(0xd, VT_I2, (void*)&result);
  4135.     return result;
  4136. }
  4137.  
  4138. void Preferences::SetUnits(short propVal)
  4139. {
  4140.     SetProperty(0xd, VT_I2, propVal);
  4141. }
  4142.  
  4143. /////////////////////////////////////////////////////////////////////////////
  4144. // Preferences operations
  4145.  
  4146.  
  4147. /////////////////////////////////////////////////////////////////////////////
  4148. // ShapeObject properties
  4149.  
  4150. LPDISPATCH ShapeObject::GetApplication()
  4151. {
  4152.     LPDISPATCH result;
  4153.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  4154.     return result;
  4155. }
  4156.  
  4157. void ShapeObject::SetApplication(LPDISPATCH propVal)
  4158. {
  4159.     SetProperty(0x1, VT_DISPATCH, propVal);
  4160. }
  4161.  
  4162. long ShapeObject::GetBorderColor()
  4163. {
  4164.     long result;
  4165.     GetProperty(0x2, VT_I4, (void*)&result);
  4166.     return result;
  4167. }
  4168.  
  4169. void ShapeObject::SetBorderColor(long propVal)
  4170. {
  4171.     SetProperty(0x2, VT_I4, propVal);
  4172. }
  4173.  
  4174. short ShapeObject::GetBorderStyle()
  4175. {
  4176.     short result;
  4177.     GetProperty(0x3, VT_I2, (void*)&result);
  4178.     return result;
  4179. }
  4180.  
  4181. void ShapeObject::SetBorderStyle(short propVal)
  4182. {
  4183.     SetProperty(0x3, VT_I2, propVal);
  4184. }
  4185.  
  4186. short ShapeObject::GetBorderWidth()
  4187. {
  4188.     short result;
  4189.     GetProperty(0x4, VT_I2, (void*)&result);
  4190.     return result;
  4191. }
  4192.  
  4193. void ShapeObject::SetBorderWidth(short propVal)
  4194. {
  4195.     SetProperty(0x4, VT_I2, propVal);
  4196. }
  4197.  
  4198. long ShapeObject::GetFillColor()
  4199. {
  4200.     long result;
  4201.     GetProperty(0x5, VT_I4, (void*)&result);
  4202.     return result;
  4203. }
  4204.  
  4205. void ShapeObject::SetFillColor(long propVal)
  4206. {
  4207.     SetProperty(0x5, VT_I4, propVal);
  4208. }
  4209.  
  4210. short ShapeObject::GetFillPattern()
  4211. {
  4212.     short result;
  4213.     GetProperty(0x6, VT_I2, (void*)&result);
  4214.     return result;
  4215. }
  4216.  
  4217. void ShapeObject::SetFillPattern(short propVal)
  4218. {
  4219.     SetProperty(0x6, VT_I2, propVal);
  4220. }
  4221.  
  4222. BOOL ShapeObject::GetIsLaunched()
  4223. {
  4224.     BOOL result;
  4225.     GetProperty(0x7, VT_BOOL, (void*)&result);
  4226.     return result;
  4227. }
  4228.  
  4229. void ShapeObject::SetIsLaunched(BOOL propVal)
  4230. {
  4231.     SetProperty(0x7, VT_BOOL, propVal);
  4232. }
  4233.  
  4234. BOOL ShapeObject::GetIsLinked()
  4235. {
  4236.     BOOL result;
  4237.     GetProperty(0x8, VT_BOOL, (void*)&result);
  4238.     return result;
  4239. }
  4240.  
  4241. void ShapeObject::SetIsLinked(BOOL propVal)
  4242. {
  4243.     SetProperty(0x8, VT_BOOL, propVal);
  4244. }
  4245.  
  4246. CString ShapeObject::GetLaunchCommand()
  4247. {
  4248.     CString result;
  4249.     GetProperty(0x9, VT_BSTR, (void*)&result);
  4250.     return result;
  4251. }
  4252.  
  4253. void ShapeObject::SetLaunchCommand(const char* propVal)
  4254. {
  4255.     SetProperty(0x9, VT_BSTR, propVal);
  4256. }
  4257.  
  4258. short ShapeObject::GetLaunchFlags()
  4259. {
  4260.     short result;
  4261.     GetProperty(0xa, VT_I2, (void*)&result);
  4262.     return result;
  4263. }
  4264.  
  4265. void ShapeObject::SetLaunchFlags(short propVal)
  4266. {
  4267.     SetProperty(0xa, VT_I2, propVal);
  4268. }
  4269.  
  4270. CString ShapeObject::GetLaunchStartDir()
  4271. {
  4272.     CString result;
  4273.     GetProperty(0xb, VT_BSTR, (void*)&result);
  4274.     return result;
  4275. }
  4276.  
  4277. void ShapeObject::SetLaunchStartDir(const char* propVal)
  4278. {
  4279.     SetProperty(0xb, VT_BSTR, propVal);
  4280. }
  4281.  
  4282. CString ShapeObject::GetLinkedChartName()
  4283. {
  4284.     CString result;
  4285.     GetProperty(0xc, VT_BSTR, (void*)&result);
  4286.     return result;
  4287. }
  4288.  
  4289. void ShapeObject::SetLinkedChartName(const char* propVal)
  4290. {
  4291.     SetProperty(0xc, VT_BSTR, propVal);
  4292. }
  4293.  
  4294. BOOL ShapeObject::GetLinkFields()
  4295. {
  4296.     BOOL result;
  4297.     GetProperty(0xd, VT_BOOL, (void*)&result);
  4298.     return result;
  4299. }
  4300.  
  4301. void ShapeObject::SetLinkFields(BOOL propVal)
  4302. {
  4303.     SetProperty(0xd, VT_BOOL, propVal);
  4304. }
  4305.  
  4306. LPDISPATCH ShapeObject::GetNoteFont()
  4307. {
  4308.     LPDISPATCH result;
  4309.     GetProperty(0xe, VT_DISPATCH, (void*)&result);
  4310.     return result;
  4311. }
  4312.  
  4313. void ShapeObject::SetNoteFont(LPDISPATCH propVal)
  4314. {
  4315.     SetProperty(0xe, VT_DISPATCH, propVal);
  4316. }
  4317.  
  4318. CString ShapeObject::GetNoteText()
  4319. {
  4320.     CString result;
  4321.     GetProperty(0xf, VT_BSTR, (void*)&result);
  4322.     return result;
  4323. }
  4324.  
  4325. void ShapeObject::SetNoteText(const char* propVal)
  4326. {
  4327.     SetProperty(0xf, VT_BSTR, propVal);
  4328. }
  4329.  
  4330. CString ShapeObject::GetNoteTextLF()
  4331. {
  4332.     CString result;
  4333.     GetProperty(0x10, VT_BSTR, (void*)&result);
  4334.     return result;
  4335. }
  4336.  
  4337. void ShapeObject::SetNoteTextLF(const char* propVal)
  4338. {
  4339.     SetProperty(0x10, VT_BSTR, propVal);
  4340. }
  4341.  
  4342. CString ShapeObject::GetNumber()
  4343. {
  4344.     CString result;
  4345.     GetProperty(0x11, VT_BSTR, (void*)&result);
  4346.     return result;
  4347. }
  4348.  
  4349. void ShapeObject::SetNumber(const char* propVal)
  4350. {
  4351.     SetProperty(0x11, VT_BSTR, propVal);
  4352. }
  4353.  
  4354. BOOL ShapeObject::GetNumberShown()
  4355. {
  4356.     BOOL result;
  4357.     GetProperty(0x12, VT_BOOL, (void*)&result);
  4358.     return result;
  4359. }
  4360.  
  4361. void ShapeObject::SetNumberShown(BOOL propVal)
  4362. {
  4363.     SetProperty(0x12, VT_BOOL, propVal);
  4364. }
  4365.  
  4366. LPDISPATCH ShapeObject::GetParent()
  4367. {
  4368.     LPDISPATCH result;
  4369.     GetProperty(0x13, VT_DISPATCH, (void*)&result);
  4370.     return result;
  4371. }
  4372.  
  4373. void ShapeObject::SetParent(LPDISPATCH propVal)
  4374. {
  4375.     SetProperty(0x13, VT_DISPATCH, propVal);
  4376. }
  4377.  
  4378. long ShapeObject::GetShadowColor()
  4379. {
  4380.     long result;
  4381.     GetProperty(0x14, VT_I4, (void*)&result);
  4382.     return result;
  4383. }
  4384.  
  4385. void ShapeObject::SetShadowColor(long propVal)
  4386. {
  4387.     SetProperty(0x14, VT_I4, propVal);
  4388. }
  4389.  
  4390. short ShapeObject::GetShadowOffset()
  4391. {
  4392.     short result;
  4393.     GetProperty(0x15, VT_I2, (void*)&result);
  4394.     return result;
  4395. }
  4396.  
  4397. void ShapeObject::SetShadowOffset(short propVal)
  4398. {
  4399.     SetProperty(0x15, VT_I2, propVal);
  4400. }
  4401.  
  4402. short ShapeObject::GetShadowStyle()
  4403. {
  4404.     short result;
  4405.     GetProperty(0x16, VT_I2, (void*)&result);
  4406.     return result;
  4407. }
  4408.  
  4409. void ShapeObject::SetShadowStyle(short propVal)
  4410. {
  4411.     SetProperty(0x16, VT_I2, propVal);
  4412. }
  4413.  
  4414. CString ShapeObject::GetShapeName()
  4415. {
  4416.     CString result;
  4417.     GetProperty(0x17, VT_BSTR, (void*)&result);
  4418.     return result;
  4419. }
  4420.  
  4421. void ShapeObject::SetShapeName(const char* propVal)
  4422. {
  4423.     SetProperty(0x17, VT_BSTR, propVal);
  4424. }
  4425.  
  4426. /////////////////////////////////////////////////////////////////////////////
  4427. // ShapeObject operations
  4428.  
  4429. void ShapeObject::DeleteLines()
  4430. {
  4431.     InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  4432. }
  4433.  
  4434. void ShapeObject::FitShapeToText()
  4435. {
  4436.     InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  4437. }
  4438.  
  4439. BOOL ShapeObject::Launch()
  4440. {
  4441.     BOOL result;
  4442.     InvokeHelper(0x1a, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  4443.     return result;
  4444. }
  4445.  
  4446. LPDISPATCH ShapeObject::Link()
  4447. {
  4448.     LPDISPATCH result;
  4449.     InvokeHelper(0x1b, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  4450.     return result;
  4451. }
  4452.  
  4453. void ShapeObject::Renumber()
  4454. {
  4455.     InvokeHelper(0x1c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  4456. }
  4457.  
  4458. BOOL ShapeObject::ReplaceShape(const VARIANT& ShapeName)
  4459. {
  4460.     BOOL result;
  4461.     static BYTE BASED_CODE parms[] =
  4462.         VTS_VARIANT;
  4463.     InvokeHelper(0x1d, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  4464.         &ShapeName);
  4465.     return result;
  4466. }
  4467.  
  4468.  
  4469. /////////////////////////////////////////////////////////////////////////////
  4470. // TextBlock properties
  4471.  
  4472. LPDISPATCH TextBlock::GetApplication()
  4473. {
  4474.     LPDISPATCH result;
  4475.     GetProperty(0x1, VT_DISPATCH, (void*)&result);
  4476.     return result;
  4477. }
  4478.  
  4479. void TextBlock::SetApplication(LPDISPATCH propVal)
  4480. {
  4481.     SetProperty(0x1, VT_DISPATCH, propVal);
  4482. }
  4483.  
  4484. BOOL TextBlock::GetAttachedToLine()
  4485. {
  4486.     BOOL result;
  4487.     GetProperty(0x2, VT_BOOL, (void*)&result);
  4488.     return result;
  4489. }
  4490.  
  4491. void TextBlock::SetAttachedToLine(BOOL propVal)
  4492. {
  4493.     SetProperty(0x2, VT_BOOL, propVal);
  4494. }
  4495.  
  4496. LPDISPATCH TextBlock::GetParent()
  4497. {
  4498.     LPDISPATCH result;
  4499.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  4500.     return result;
  4501. }
  4502.  
  4503. void TextBlock::SetParent(LPDISPATCH propVal)
  4504. {
  4505.     SetProperty(0x3, VT_DISPATCH, propVal);
  4506. }
  4507.  
  4508. /////////////////////////////////////////////////////////////////////////////
  4509. // TextBlock operations
  4510.  
  4511. void TextBlock::UnattachFromLine()
  4512. {
  4513.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  4514. }
  4515.